From: Silvio Rhatto Date: Sun, 11 Apr 2010 18:54:53 +0000 (-0300) Subject: Adding modprobe::laptop X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b59bef5fc1790012a7f01644cd156f694dcf19f2;p=puppet-nodo.git Adding modprobe::laptop --- diff --git a/files/etc/modules/laptop b/files/etc/modules/laptop new file mode 100644 index 0000000..54f4d4f --- /dev/null +++ b/files/etc/modules/laptop @@ -0,0 +1,7 @@ +# /etc/modules: kernel modules to load at boot time. +# +# This file contains the names of kernel modules that should be loaded +# at boot time, one per line. Lines beginning with "#" are ignored. +# Parameters can be specified after the module name. + +pciehp diff --git a/manifests/laptop.pp b/manifests/laptop.pp index 1591aa7..9753869 100644 --- a/manifests/laptop.pp +++ b/manifests/laptop.pp @@ -1,5 +1,6 @@ class nodo::laptop inherits nodo::personal { include utils::laptop + include modprobe::laptop # fstab file { "/etc/fstab": diff --git a/manifests/subsystems/modprobe.pp b/manifests/subsystems/modprobe.pp index 6192f6d..cfd6be8 100644 --- a/manifests/subsystems/modprobe.pp +++ b/manifests/subsystems/modprobe.pp @@ -8,3 +8,13 @@ class modprobe { source => "puppet://$server/modules/nodo/etc/modprobe.d/blacklist", } } + +class modprobe::laptop { + file { "/etc/modules": + owner => "root", + group => "root", + mode => 0644, + ensure => present, + source => "puppet://$server/modules/nodo/etc/modules/laptop", + } +}