ci: lib: Configure SSH key for Ansible
In order for Jenkins to apply configuration policy on machines that are not members of the *pyrocufflink.blue* domain, it needs to use an SSH private key for authentication.btop
parent
5a9b9a8d98
commit
37a205e8a0
|
@ -61,6 +61,7 @@ def stageRemountRW(limit) {
|
||||||
playbook: 'remount.yml',
|
playbook: 'remount.yml',
|
||||||
limit: limit,
|
limit: limit,
|
||||||
become: true,
|
become: true,
|
||||||
|
credentialsId: 'jenkins-cfgmgmt',
|
||||||
vaultCredentialsId: 'ansible-vault',
|
vaultCredentialsId: 'ansible-vault',
|
||||||
extraVars: [
|
extraVars: [
|
||||||
remount_state: 'rw',
|
remount_state: 'rw',
|
||||||
|
@ -78,6 +79,7 @@ def generateStages(stages) {
|
||||||
ansiblePlaybook \
|
ansiblePlaybook \
|
||||||
playbook: playbook,
|
playbook: playbook,
|
||||||
become: true,
|
become: true,
|
||||||
|
credentialsId: 'jenkins-cfgmgmt',
|
||||||
vaultCredentialsId: 'ansible-vault',
|
vaultCredentialsId: 'ansible-vault',
|
||||||
extras: '--diff',
|
extras: '--diff',
|
||||||
skippedTags: 'install'
|
skippedTags: 'install'
|
||||||
|
@ -94,6 +96,7 @@ def stageRemountRO(limit) {
|
||||||
playbook: 'remount.yml',
|
playbook: 'remount.yml',
|
||||||
limit: limit + ':!rw-root',
|
limit: limit + ':!rw-root',
|
||||||
become: true,
|
become: true,
|
||||||
|
credentialsId: 'jenkins-cfgmgmt',
|
||||||
vaultCredentialsId: 'ansible-vault',
|
vaultCredentialsId: 'ansible-vault',
|
||||||
extras: '--diff'
|
extras: '--diff'
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue