diff --git a/ci/zabbix.jenkinsfile b/ci/zabbix.jenkinsfile index 4ce9e46..9a29eb3 100644 --- a/ci/zabbix.jenkinsfile +++ b/ci/zabbix.jenkinsfile @@ -20,6 +20,24 @@ pipeline { } } + stage('Remount R/W') { + steps { + withCredentials([file( + credentialsId: 'vault-jenkins@pyrocufflink.blue', + variable: 'SUDO_PASS_FILE')]) { + ansiblePlaybook \ + playbook: 'remount.yml', + limit: 'zabbix', + become: true, + vaultCredentialsId: 'ansible-vault', + extraVars: [ + remount_state: 'rw', + ], + extras: '-e@"${SUDO_PASS_FILE}"' + } + } + } + stage('Zabbix') { steps { withCredentials([file( @@ -33,6 +51,22 @@ pipeline { } } } + + stage('Remount R/O') { + steps { + withCredentials([file( + credentialsId: 'vault-jenkins@pyrocufflink.blue', + variable: 'SUDO_PASS_FILE')]) { + ansiblePlaybook \ + playbook: 'remount.yml', + limit: 'zabbix', + become: true, + vaultCredentialsId: 'ansible-vault', + extras: '-e@"${SUDO_PASS_FILE}"' + } + } + } + } post {