create cronjob to run highstate after setup

This commit is contained in:
m0duspwnens
2023-01-23 14:46:26 -05:00
parent a1fa4e3ef2
commit 22fbb953ea
3 changed files with 12 additions and 0 deletions

View File

@@ -218,6 +218,11 @@ sostatus_check_cron:
- month: '*'
- dayweek: '*'
remove_post_setup_cron:
cron.absent:
- name: 'salt-call state.highstate'
- identifier: post_setup_cron
{% if GLOBALS.role not in ['eval', 'manager', 'managersearch', 'standalone'] %}
soversionfile:

View File

@@ -0,0 +1,6 @@
post_setup_cron:
cron.present:
- name: 'salt-call state.highstate'
- user: root
- minute: '*/1'
- identifier: post_setup_cron

View File

@@ -608,6 +608,7 @@ if ! [[ -f $install_opt_file ]]; then
configure_minion "$minion_type"
drop_install_options
checkin_at_boot
logCmd "salt-call state.apply setup.highstate_cron --local --file-root=../salt/"
whiptail_setup_complete
fi