From 2274fb32029e56c3fa5368564256dbe02b62e3eb Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 16 Apr 2018 08:29:36 -0500 Subject: [PATCH] ci: samba-dc: Remount filesystems --- ci/samba-dc.jenkinsfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/ci/samba-dc.jenkinsfile b/ci/samba-dc.jenkinsfile index 9d9d143..fcf0cfa 100644 --- a/ci/samba-dc.jenkinsfile +++ b/ci/samba-dc.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: 'samba-dc', + become: true, + vaultCredentialsId: 'ansible-vault', + extraVars: [ + remount_state: 'rw', + ], + extras: '-e@"${SUDO_PASS_FILE}"' + } + } + } + stage('Domain Controller') { 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: 'samba-dc', + become: true, + vaultCredentialsId: 'ansible-vault', + extras: '-e@"${SUDO_PASS_FILE}"' + } + } + } + } post {