X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fsensors.pp;h=d835c9335ff335fcb133305a6565b6be72d259ff;hb=c7467f022874eb62e0fde888f5fc089727b28a9e;hp=487d7ce53a2035bb67b41a6b69dad63b1fcb9cf9;hpb=2b17be6ea94945aef6426160a5b5c3152bd53432;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/sensors.pp b/modules/hardware/manifests/sensors.pp index 487d7ce53..d835c9335 100644 --- a/modules/hardware/manifests/sensors.pp +++ b/modules/hardware/manifests/sensors.pp @@ -2,9 +2,8 @@ class hardware::sensors { if $::hw_can_temp_sensors { package { 'lm-sensors': ensure => installed, } munin::check { 'sensors_temp': script => 'sensors_' } - } - exec { 'invoke-rc.d munin-async restart': - path => '/usr/bin:/usr/sbin:/bin:/sbin', - refreshonly => true + } else { + package { 'lm-sensors': ensure => purged, } + munin::check { 'sensors_temp': ensure => absent } } }