mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 03:02:58 +01:00
fix issues with updating motd if nodes needs restarted due to OS patch updates
This commit is contained in:
@@ -2,3 +2,4 @@ needs_restarting:
|
|||||||
module.run:
|
module.run:
|
||||||
- mine.send:
|
- mine.send:
|
||||||
- func: needs_restarting.check
|
- func: needs_restarting.check
|
||||||
|
- order: last
|
||||||
|
|||||||
@@ -8,4 +8,3 @@ patch_os:
|
|||||||
pkg.uptodate:
|
pkg.uptodate:
|
||||||
- name: patch_os
|
- name: patch_os
|
||||||
- refresh: True
|
- refresh: True
|
||||||
- onchanges_in: needs_restarting
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
{%- set PLAYBOOK = salt['pillar.get']('master:playbook', '0') -%}
|
{%- set PLAYBOOK = salt['pillar.get']('master:playbook', '0') -%}
|
||||||
base:
|
base:
|
||||||
'*':
|
'*':
|
||||||
- patch.needs_restarting
|
|
||||||
- patch.os.schedule
|
- patch.os.schedule
|
||||||
|
- patch.needs_restarting
|
||||||
- motd
|
- motd
|
||||||
|
|
||||||
'G@role:so-sensor':
|
'G@role:so-sensor':
|
||||||
|
|||||||
Reference in New Issue
Block a user