11-25 update

This commit is contained in:
2025-11-28 17:26:16 -08:00
parent 61acb185e5
commit a201c7919a
3 changed files with 15 additions and 5 deletions

View File

@ -11,7 +11,7 @@ pipeline {
booleanParam(name: 'install_docker', defaultValue: true, description: 'When checked docker packages are installed and portainer started on 9100') booleanParam(name: 'install_docker', defaultValue: true, description: 'When checked docker packages are installed and portainer started on 9100')
booleanParam(name: 'install_LDAP', defaultValue: false, description: 'When checked LDAP integration is installed with NSLCD') booleanParam(name: 'install_LDAP', defaultValue: false, description: 'When checked LDAP integration is installed with NSLCD')
// this now needs to have the case sensitive name of the role to run // this now needs to have the case sensitive name of the role to run
choice(name: 'special_server', choices: ['none', 'octoprint', 'kodi', 'timelapse', 'pxe_server', 'jenkins_vpn', 'net_bridge', 'carputer', 'video_capture', 'vcr_client', 'vcr_server'], description: 'Choose special server install if desired') choice(name: 'special_server', choices: ['none', 'octoprint', 'kodi', 'timelapse', 'pxe_server', 'jenkins_vpn', 'net_bridge', 'carputer', 'video_capture', 'vcr_client', 'vcr_server', 'ssd_health', 'gpo_site'], description: 'Choose special server install if desired')
booleanParam(name: 'refresh_special', defaultValue: false, description: 'When checked only the special server step is run') booleanParam(name: 'refresh_special', defaultValue: false, description: 'When checked only the special server step is run')
booleanParam(name: 'no_vpn', defaultValue: false, description: 'Check this option to remove default cosmos VPN') booleanParam(name: 'no_vpn', defaultValue: false, description: 'Check this option to remove default cosmos VPN')
booleanParam(name: 'public_deploy', defaultValue: true, description: 'Uncheck this option to deploy private SSH key') booleanParam(name: 'public_deploy', defaultValue: true, description: 'Uncheck this option to deploy private SSH key')
@ -28,6 +28,7 @@ pipeline {
ANSIBLE_FORCE_COLOR = '1' ANSIBLE_FORCE_COLOR = '1'
SATURN_BEHEMOTH = credentials('SATURN_BEHEMOTH') SATURN_BEHEMOTH = credentials('SATURN_BEHEMOTH')
CIFS_CREDENTIALS = credentials("TERRA_BEHEMOTH_SMB") CIFS_CREDENTIALS = credentials("TERRA_BEHEMOTH_SMB")
ITMFG_CREDENTIALS = credentials("itmfg_duymatt")
APPS_LIST = 'cosmos-base' APPS_LIST = 'cosmos-base'
LINUX_LDAP_PWD = credentials('LINUX_LDAP') LINUX_LDAP_PWD = credentials('LINUX_LDAP')
pxe_proxy_password = credentials('pxe_proxy_password') pxe_proxy_password = credentials('pxe_proxy_password')
@ -135,6 +136,7 @@ pipeline {
--ssh-common-args='-o StrictHostKeyChecking=no' \ --ssh-common-args='-o StrictHostKeyChecking=no' \
--extra-vars "new_hostname=${params.new_hostname} saturn_behemoth=${SATURN_BEHEMOTH} \ --extra-vars "new_hostname=${params.new_hostname} saturn_behemoth=${SATURN_BEHEMOTH} \
CIFS_USERNAME=${env.CIFS_CREDENTIALS_USR} CIFS_PASSWORD=${env.CIFS_CREDENTIALS_PSW} \ CIFS_USERNAME=${env.CIFS_CREDENTIALS_USR} CIFS_PASSWORD=${env.CIFS_CREDENTIALS_PSW} \
ITMFG_USERNAME=${env.ITMFG_CREDENTIALS_USR} ITMFG_PASSWORD=${env.ITMFG_CREDENTIALS_PSW} \
docker_full=false rename_host=${params.rename_endpoint} onboard_pi=${params.onboard_pi} \ docker_full=false rename_host=${params.rename_endpoint} onboard_pi=${params.onboard_pi} \
linux_ldap_pwd=${LINUX_LDAP_PWD} install_docker=${params.install_docker} \ linux_ldap_pwd=${LINUX_LDAP_PWD} install_docker=${params.install_docker} \
install_LDAP=${params.install_LDAP} special_server='${params.special_server}' \ install_LDAP=${params.install_LDAP} special_server='${params.special_server}' \

View File

@ -4,10 +4,13 @@ pipeline {
// Define parameters // Define parameters
parameters { parameters {
string(name: 'host_ip', description: 'Target System Address') 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') // string(name: 'new_hostname', description: 'Update Hostname')
// reference for later // reference for later
// choice(name: 'DEPLOY_ENV', choices: ['dev', 'staging', 'prod'], description: 'Environment to deploy to') // 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') // booleanParam(name: 'config_matt', defaultValue: true, description: 'config matt profile')
} }
@ -17,6 +20,8 @@ pipeline {
matt_public_key = credentials('matt_public_key') matt_public_key = credentials('matt_public_key')
matt_private_key = credentials('matt_private_key') matt_private_key = credentials('matt_private_key')
autologin_password = credentials('cosmos_password') autologin_password = credentials('cosmos_password')
cosmos_password = credentials('cosmos_password')
cosmos_root_password = credentials('cosmos_root_password')
} }
options { options {
@ -53,9 +58,12 @@ pipeline {
ansible-playbook -i \$inventory_file /var/jenkins_home/ansible/playbooks/ssd_health.yaml \ ansible-playbook -i \$inventory_file /var/jenkins_home/ansible/playbooks/ssd_health.yaml \
--ssh-common-args='-o StrictHostKeyChecking=no'\ --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}' \ 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} "
""" """
} }
} }

View File

@ -92,7 +92,7 @@ pipeline {
echo "Waiting for reboot" echo "Waiting for reboot"
def ip = sh(script: "cat /var/jenkins_home/ansible/.inv/inventory-${env.STAGE_TWO_HASH}.yml | grep host_ip | cut -d ';' -f 2", returnStdout: true).trim() def ip = sh(script: "cat /var/jenkins_home/ansible/.inv/inventory-${env.STAGE_TWO_HASH}.yml | grep stage_two_ip | cut -d ':' -f 2", returnStdout: true).trim()
echo "Detected IP: ${ip}" echo "Detected IP: ${ip}"
def timeoutSeconds = 300 // Total timeout: 5 minutes def timeoutSeconds = 300 // Total timeout: 5 minutes