11-25 update
This commit is contained in:
@ -4,10 +4,13 @@ pipeline {
|
||||
// Define parameters
|
||||
parameters {
|
||||
string(name: 'host_ip', description: 'Target System Address')
|
||||
booleanParam(name: 'rename_endpoint', defaultValue: true, description: 'Uncheck to skip renaming of endpoint')
|
||||
booleanParam(name: 'install_kiosk', defaultValue: false, description: 'Install chromium kiosk, only run when installing a GUI makes sense')
|
||||
booleanParam(name: 'quick_refresh', defaultValue: false, description: 'Skip some of the slow boring parts')
|
||||
booleanParam(name: 'service_only', defaultValue: false, description: 'No GUI, No Autologin')
|
||||
// string(name: 'new_hostname', description: 'Update Hostname')
|
||||
// reference for later
|
||||
// choice(name: 'DEPLOY_ENV', choices: ['dev', 'staging', 'prod'], description: 'Environment to deploy to')
|
||||
// booleanParam(name: 'rename_host', defaultValue: true, description: 'When checked hostname will be renamed')
|
||||
// booleanParam(name: 'config_matt', defaultValue: true, description: 'config matt profile')
|
||||
}
|
||||
|
||||
@ -17,6 +20,8 @@ pipeline {
|
||||
matt_public_key = credentials('matt_public_key')
|
||||
matt_private_key = credentials('matt_private_key')
|
||||
autologin_password = credentials('cosmos_password')
|
||||
cosmos_password = credentials('cosmos_password')
|
||||
cosmos_root_password = credentials('cosmos_root_password')
|
||||
}
|
||||
|
||||
options {
|
||||
@ -53,9 +58,12 @@ pipeline {
|
||||
|
||||
ansible-playbook -i \$inventory_file /var/jenkins_home/ansible/playbooks/ssd_health.yaml \
|
||||
--ssh-common-args='-o StrictHostKeyChecking=no'\
|
||||
--extra-vars "AUTHORIZED_KEY=${AUTHORIZED_KEY} host_ip=${params.host_ip} \
|
||||
--extra-vars "AUTHORIZED_KEY=${AUTHORIZED_KEY} host_ip=${params.host_ip} \
|
||||
matt_public_key='${env.matt_public_key}' matt_private_key='${env.matt_private_key}' \
|
||||
autologin_password=${env.autologin_password} }"
|
||||
autologin_password=${env.autologin_password} cosmos_root_password='${env.cosmos_root_password}' \
|
||||
cosmos_password='${env.cosmos_password}' install_kiosk=${params.install_kiosk} \
|
||||
service_only=${params.service_only} quick_refresh=${params.quick_refresh} \
|
||||
rename_endpoint=${params.rename_endpoint} "
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user