Add laptop GPU setup

This commit is contained in:
Jake Howard 2018-03-31 18:40:05 +01:00
parent 7244f88d47
commit 98d0c3df59
3 changed files with 22 additions and 1 deletions

3
.gitmodules vendored
View file

@ -7,3 +7,6 @@
[submodule "modules/stdlib"] [submodule "modules/stdlib"]
path = modules/stdlib path = modules/stdlib
url = https://github.com/puppetlabs/puppetlabs-stdlib url = https://github.com/puppetlabs/puppetlabs-stdlib
[submodule "modules/kmod"]
path = modules/kmod
url = https://github.com/camptocamp/puppet-kmod

View file

@ -2,13 +2,30 @@ class devices::laptop {
package {[ package {[
'ethtool', 'ethtool',
'smartmontools', 'smartmontools',
'tlp' 'tlp',
'nvidia',
'nvidia-settings',
'bumblebee',
'bbswitch'
]: ]:
ensure => installed ensure => installed
} }
-> service {'tlp': -> service {'tlp':
enable => true enable => true
} }
-> user { 'Update user groups':
name => 'jake',
groups => [
'input',
'users',
'wheel',
'bumblebee'
]
}
-> service { 'bumblebeed':
enable => true
}
-> kmod::load { 'nvidia': }
file { 'TLP config': file { 'TLP config':
ensure => file, ensure => file,

1
modules/kmod Submodule

@ -0,0 +1 @@
Subproject commit ad513009a503842bece35953943ce12a0e1503ee