]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding modprobe::laptop
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 11 Apr 2010 18:54:53 +0000 (15:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 11 Apr 2010 18:54:53 +0000 (15:54 -0300)
files/etc/modules/laptop [new file with mode: 0644]
manifests/laptop.pp
manifests/subsystems/modprobe.pp

diff --git a/files/etc/modules/laptop b/files/etc/modules/laptop
new file mode 100644 (file)
index 0000000..54f4d4f
--- /dev/null
@@ -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
index 1591aa7e4f5bbcb667b44ea96e9fd4127b6fb6e9..9753869e57d815ba8e4f30ed2879b4bbf7a6a137 100644 (file)
@@ -1,5 +1,6 @@
 class nodo::laptop inherits nodo::personal {
   include utils::laptop
+  include modprobe::laptop
 
   # fstab
   file { "/etc/fstab":
index 6192f6dcb473d2648a7bf23181c79dccaa55a7d8..cfd6be8525efcf8cff798c27ae774a483b1f52bc 100644 (file)
@@ -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",
+  }
+}