ci: zabbix: Specify credentials

Since the host *gw0* is not a member of the *pyrocufflink.blue* domain,
GSSAPI authentication does not work. As such, the SSH private key has to
be made available to the `ansible-playbook` process for authentication
to that host.
This commit is contained in:
2018-06-22 19:43:08 -05:00
parent cae9f2e3c2
commit 7766cc1d05

View File

@@ -38,6 +38,7 @@ pipeline {
playbook: 'remount.yml', playbook: 'remount.yml',
limit: 'zabbix', limit: 'zabbix',
become: true, become: true,
credentialsId: 'jenkins-ssh',
vaultCredentialsId: 'ansible-vault', vaultCredentialsId: 'ansible-vault',
extraVars: [ extraVars: [
remount_state: 'rw', remount_state: 'rw',
@@ -61,6 +62,7 @@ pipeline {
playbook: 'zabbix-agent.yml', playbook: 'zabbix-agent.yml',
limit: '!gw0', limit: '!gw0',
become: true, become: true,
credentialsId: 'jenkins-ssh',
vaultCredentialsId: 'ansible-vault', vaultCredentialsId: 'ansible-vault',
extras: '--diff' extras: '--diff'
} }
@@ -72,6 +74,7 @@ pipeline {
playbook: 'remount.yml', playbook: 'remount.yml',
limit: 'zabbix', limit: 'zabbix',
become: true, become: true,
credentialsId: 'jenkins-ssh',
vaultCredentialsId: 'ansible-vault' vaultCredentialsId: 'ansible-vault'
} }
} }