From 09bf22c97a6e738672de2f7a2bbb277af700939c Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 19 Nov 2019 10:06:52 -0500 Subject: [PATCH] fix issues with updating motd if nodes needs restarted due to OS patch updates --- salt/patch/needs_restarting.sls | 1 + salt/patch/os/init.sls | 1 - salt/top.sls | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/patch/needs_restarting.sls b/salt/patch/needs_restarting.sls index f7ba2626d..f60909d22 100644 --- a/salt/patch/needs_restarting.sls +++ b/salt/patch/needs_restarting.sls @@ -2,3 +2,4 @@ needs_restarting: module.run: - mine.send: - func: needs_restarting.check + - order: last diff --git a/salt/patch/os/init.sls b/salt/patch/os/init.sls index a29bf8d12..7f2adc65b 100644 --- a/salt/patch/os/init.sls +++ b/salt/patch/os/init.sls @@ -8,4 +8,3 @@ patch_os: pkg.uptodate: - name: patch_os - refresh: True - - onchanges_in: needs_restarting diff --git a/salt/top.sls b/salt/top.sls index b1c64def4..a2662a89b 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -6,8 +6,8 @@ {%- set PLAYBOOK = salt['pillar.get']('master:playbook', '0') -%} base: '*': - - patch.needs_restarting - patch.os.schedule + - patch.needs_restarting - motd 'G@role:so-sensor':