ci: pyrocufflink: Remount filesystems

This commit is contained in:
2018-04-16 08:27:38 -05:00
parent 6bd89c9206
commit 168f542d6b

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: 'pyrocufflink',
become: true,
vaultCredentialsId: 'ansible-vault',
extraVars: [
remount_state: 'rw',
],
extras: '-e@"${SUDO_PASS_FILE}"'
}
}
}
stage('Domain Member') {
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: 'pyrocufflink',
become: true,
vaultCredentialsId: 'ansible-vault',
extras: '-e@"${SUDO_PASS_FILE}"'
}
}
}
}
post {