mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-05-01 00:47:54 +02:00
restart salt-minion at end of run if mine_functions changes
This commit is contained in:
@@ -84,6 +84,8 @@ mine_functions:
|
|||||||
- name: /etc/salt/minion.d/mine_functions.conf
|
- name: /etc/salt/minion.d/mine_functions.conf
|
||||||
- source: salt://salt/etc/minion.d/mine_functions.conf
|
- source: salt://salt/etc/minion.d/mine_functions.conf
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
- listen_in:
|
||||||
|
- service: salt_minion_service
|
||||||
|
|
||||||
# this has to be outside the if statement above since there are <requisite>_in calls to this state
|
# this has to be outside the if statement above since there are <requisite>_in calls to this state
|
||||||
salt_minion_service:
|
salt_minion_service:
|
||||||
@@ -91,8 +93,6 @@ salt_minion_service:
|
|||||||
- name: salt-minion
|
- name: salt-minion
|
||||||
- enable: True
|
- enable: True
|
||||||
- onlyif: test "{{INSTALLEDSALTVERSION}}" == "{{SALTVERSION}}"
|
- onlyif: test "{{INSTALLEDSALTVERSION}}" == "{{SALTVERSION}}"
|
||||||
- watch:
|
|
||||||
- file: mine_functions
|
|
||||||
|
|
||||||
patch_pkg:
|
patch_pkg:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
|||||||
Reference in New Issue
Block a user