projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec3b198
)
make a reverse for hw_can_temp_sensors that removes lm-sensors
author
Peter Palfrader
<peter@palfrader.org>
Sat, 18 Mar 2017 19:22:35 +0000
(20:22 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Sat, 18 Mar 2017 19:22:42 +0000
(20:22 +0100)
modules/hardware/manifests/sensors.pp
patch
|
blob
|
history
diff --git
a/modules/hardware/manifests/sensors.pp
b/modules/hardware/manifests/sensors.pp
index
b52b95e
..
d835c93
100644
(file)
--- a/
modules/hardware/manifests/sensors.pp
+++ b/
modules/hardware/manifests/sensors.pp
@@
-2,5
+2,8
@@
class hardware::sensors {
if $::hw_can_temp_sensors {
package { 'lm-sensors': ensure => installed, }
munin::check { 'sensors_temp': script => 'sensors_' }
+ } else {
+ package { 'lm-sensors': ensure => purged, }
+ munin::check { 'sensors_temp': ensure => absent }
}
}