2018-03-21 17:03:20 +00:00
|
|
|
class devices::laptop {
|
2018-03-21 17:24:45 +00:00
|
|
|
package {[
|
|
|
|
'ethtool',
|
|
|
|
'smartmontools',
|
2018-09-06 09:20:51 +01:00
|
|
|
'tlp'
|
2018-03-21 17:24:45 +00:00
|
|
|
]:
|
2018-03-21 17:03:20 +00:00
|
|
|
ensure => installed
|
|
|
|
}
|
|
|
|
-> service {'tlp':
|
|
|
|
enable => true
|
|
|
|
}
|
2018-04-18 13:32:59 +01:00
|
|
|
-> service {'tlp-sleep':
|
|
|
|
enable => true
|
|
|
|
}
|
2018-03-21 17:03:20 +00:00
|
|
|
|
|
|
|
file { 'TLP config':
|
|
|
|
ensure => file,
|
|
|
|
mode => '0644',
|
|
|
|
path => '/etc/default/tlp',
|
|
|
|
source => 'puppet:///modules/devices/tlp.conf'
|
|
|
|
}
|
|
|
|
}
|