Initial version of lm_sensors module.
This commit is contained in:
parent
c69fb5afb0
commit
b20d368bb3
1 changed files with 24 additions and 0 deletions
24
lm_sensors/manifests/init.pp
Normal file
24
lm_sensors/manifests/init.pp
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
# Install Lm_Sensors
|
||||||
|
#
|
||||||
|
class lm_sensors {
|
||||||
|
|
||||||
|
package { "lm_sensors":
|
||||||
|
ensure => installed,
|
||||||
|
notify => Exec["sensors-detect"],
|
||||||
|
}
|
||||||
|
|
||||||
|
exec { "sensors-detect":
|
||||||
|
command => "cat /dev/null | sensors-detect",
|
||||||
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
|
refreshonly => true,
|
||||||
|
before => Service["lm_sensors"],
|
||||||
|
}
|
||||||
|
|
||||||
|
service { "lm_sensors":
|
||||||
|
ensure => running,
|
||||||
|
hasstatus => true,
|
||||||
|
enable => true,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue