ci: pyrocufflink: Add pipline for domain members

The `pyrocufflink` Jenkins pipleline applies the `pyrocufflink.yml`
playbook to ensure AD domain member configuration is correct.
jenkins-master
Dustin 2018-04-08 14:23:32 -05:00
parent f57588d590
commit a4aeda6371
2 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,48 @@
// vim: set ft=groovy sw=4 ts=4 sts=4 et :
pipeline {
agent {
label 'ansible'
}
triggers {
pollSCM ''
}
stages {
stage('kinit') {
steps {
withCredentials([file(
credentialsId: 'keytab-jenkins@pyrocufflink.blue',
variable: 'KEYTAB')]) {
sh 'kinit -kt "${KEYTAB}" jenkins@PYROCUFFLINK.BLUE'
}
}
}
stage('Domain Member') {
steps {
withCredentials([
file(
credentialsId: 'ansible-vault',
variable: 'ANSIBLE_VAULT_PASSWORD_FILE',
),
file(
credentialsId: 'vault-jenkins@pyrocufflink.blue',
variable: 'SUDO_PASS_FILE',
),
]) {
sh '''
ansible-playbook --diff -b pyrocufflink.yml -e "@${SUDO_PASS_FILE}"
'''
}
}
}
}
post {
always {
sh 'kdestroy'
}
}
}

View File

@ -33,7 +33,7 @@ pipeline {
), ),
]) { ]) {
sh ''' sh '''
ansible-playbook --diff -b domain-controller.yml -e "@${SUDO_PASS_FILE}" ansible-playbook --check --diff -b domain-controller.yml -e "@${SUDO_PASS_FILE}"
''' '''
} }
} }