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':