From 168f542d6b7a10ff4f68c231d14537926255e98f Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 16 Apr 2018 08:27:38 -0500 Subject: [PATCH] ci: pyrocufflink: Remount filesystems --- ci/pyrocufflink.jenkinsfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/ci/pyrocufflink.jenkinsfile b/ci/pyrocufflink.jenkinsfile index 6032cbe..18c49a2 100644 --- a/ci/pyrocufflink.jenkinsfile +++ b/ci/pyrocufflink.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: '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 {