Add laptop GPU setup
This commit is contained in:
parent
7244f88d47
commit
98d0c3df59
3 changed files with 22 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
|
||||||
|
|
|
@ -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
1
modules/kmod
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit ad513009a503842bece35953943ce12a0e1503ee
|
Loading…
Reference in a new issue