2018-03-21 17:03:20 +00:00
|
|
|
class devices::laptop {
|
2018-03-21 17:24:45 +00:00
|
|
|
package {[
|
|
|
|
'ethtool',
|
|
|
|
'smartmontools',
|
2018-03-31 18:40:05 +01:00
|
|
|
'tlp',
|
|
|
|
'nvidia',
|
|
|
|
'nvidia-settings',
|
|
|
|
'bumblebee',
|
|
|
|
'bbswitch'
|
2018-03-21 17:24:45 +00:00
|
|
|
]:
|
2018-03-21 17:03:20 +00:00
|
|
|
ensure => installed
|
|
|
|
}
|
|
|
|
-> service {'tlp':
|
|
|
|
enable => true
|
|
|
|
}
|
2018-03-31 18:40:05 +01:00
|
|
|
-> user { 'Update user groups':
|
|
|
|
name => 'jake',
|
|
|
|
groups => [
|
|
|
|
'input',
|
|
|
|
'users',
|
|
|
|
'wheel',
|
|
|
|
'bumblebee'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
-> service { 'bumblebeed':
|
|
|
|
enable => true
|
|
|
|
}
|
|
|
|
-> kmod::load { 'nvidia': }
|
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'
|
|
|
|
}
|
|
|
|
}
|