]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Modprobe config for squeeze
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 16:17:29 +0000 (14:17 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 16:17:29 +0000 (14:17 -0200)
files/etc/modprobe.d/blacklist.conf [moved from files/etc/modprobe.d/blacklist with 100% similarity]
manifests/subsystems/modprobe.pp

index 01a2f91a64caf24e1890bf47fcb062bc13267b95..45870aff20c12379996096f449dcfc5f65ef1614 100644 (file)
@@ -1,11 +1,29 @@
 class modprobe {
   # keep firewire disabled among other things
-  file { "/etc/modprobe.d/blacklist":
-    owner   => "root",
-    group   => "root",
-    mode    => 0644,
-    ensure  => present,
-    source  => "puppet://$server/modules/nodo/etc/modprobe.d/blacklist",
+  case $lsbdistcodename ? {
+    'lenny': {
+      file { "/etc/modprobe.d/blacklist":
+        owner   => "root",
+        group   => "root",
+        mode    => 0644,
+        ensure  => present,
+        source  => "puppet://$server/modules/nodo/etc/modprobe.d/blacklist.conf",
+      }
+    }
+    default: {
+      # upgrade from lenny
+      file { "/etc/modprobe.d/blacklist":
+        ensure => absent,
+      }
+
+      file { "/etc/modprobe.d/blacklist.conf":
+        owner   => "root",
+        group   => "root",
+        mode    => 0644,
+        ensure  => present,
+        source  => "puppet://$server/modules/nodo/etc/modprobe.d/blacklist.conf",
+      }
+    }
   }
 }