ci: zabbix: Remount filesystems

jenkins-master
Dustin 2018-04-15 13:48:54 -05:00
parent ffc8972abc
commit e61fe015ed
1 changed files with 34 additions and 0 deletions

View File

@ -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') { stage('Zabbix') {
steps { steps {
withCredentials([file( 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 { post {