mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-28 15:37:51 +02:00
remove possible race condition caused by vm init cron for setup.virt.init. setup.virt and mine updated during salt-cloud call with init_script
This commit is contained in:
@@ -8,21 +8,11 @@ set_role_grain:
|
||||
- name: role
|
||||
- value: so-{{ grains.id.split("_") | last }}
|
||||
|
||||
# remove the initial cron
|
||||
remove_init_node_cron:
|
||||
cron.absent:
|
||||
- name: salt-call state.apply setup.virt.init
|
||||
- identifier: init_node_cron
|
||||
- user: root
|
||||
|
||||
set_highstate:
|
||||
file.append:
|
||||
- name: /etc/salt/minion
|
||||
- text: 'startup_states: highstate'
|
||||
|
||||
restart_salt_minion:
|
||||
service.running:
|
||||
enable_salt_minion:
|
||||
service.enabled:
|
||||
- name: salt-minion
|
||||
- enable: True
|
||||
- watch:
|
||||
- file: set_highstate
|
||||
|
||||
Reference in New Issue
Block a user