mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
changes to patch motd so nodes can be removed after they restarted - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/112
This commit is contained in:
4
salt/patch/needs_restarting.sls
Normal file
4
salt/patch/needs_restarting.sls
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
needs_restarting:
|
||||||
|
module.run:
|
||||||
|
- mine.send:
|
||||||
|
- func: needs_restarting.check
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{% if grains.os == "CentOS" %}
|
|
||||||
include:
|
include:
|
||||||
|
- patch.needs_restarting
|
||||||
|
{% if grains.os == "CentOS" %}
|
||||||
- yum.packages
|
- yum.packages
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@@ -7,8 +8,4 @@ patch_os:
|
|||||||
pkg.uptodate:
|
pkg.uptodate:
|
||||||
- name: patch_os
|
- name: patch_os
|
||||||
- refresh: True
|
- refresh: True
|
||||||
|
- onchanges_in: needs_restarting
|
||||||
needs_restarting:
|
|
||||||
module.run:
|
|
||||||
- mine.send:
|
|
||||||
- func: needs_restarting.check
|
|
||||||
|
|||||||
Reference in New Issue
Block a user