diff --git a/pillar/patch/needs_restarting.sls b/pillar/patch/needs_restarting.sls new file mode 100644 index 000000000..f77dd2269 --- /dev/null +++ b/pillar/patch/needs_restarting.sls @@ -0,0 +1,2 @@ +mine_functions: + needs_restarting.check: [] diff --git a/pillar/top.sls b/pillar/top.sls index 031352a11..ffa99de59 100644 --- a/pillar/top.sls +++ b/pillar/top.sls @@ -1,4 +1,7 @@ base: + '*': + - patch.needs_restarting + 'G@role:so-sensor': - sensors.{{ grains.id }} - static diff --git a/salt/patch/os/init.sls b/salt/patch/os/init.sls index 7f2adc65b..ade35294a 100644 --- a/salt/patch/os/init.sls +++ b/salt/patch/os/init.sls @@ -1,8 +1,8 @@ include: - - patch.needs_restarting {% if grains.os == "CentOS" %} - yum.packages {% endif %} + - patch.needs_restarting patch_os: pkg.uptodate: diff --git a/salt/top.sls b/salt/top.sls index a2662a89b..46745a38b 100644 --- a/salt/top.sls +++ b/salt/top.sls @@ -7,7 +7,6 @@ base: '*': - patch.os.schedule - - patch.needs_restarting - motd 'G@role:so-sensor':