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:
m0duspwnens
2019-11-18 16:02:48 -05:00
parent d7a1b035bd
commit 726251cd94
2 changed files with 7 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
needs_restarting:
module.run:
- mine.send:
- func: needs_restarting.check

View File

@@ -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