diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 14:17:29 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 14:17:29 -0200 |
commit | d27a46c2847dc7e56a34f91fe92b40b6b389a878 (patch) | |
tree | 54dbd5b44a43cd7ede00a93b64c2ba5be1f06bc4 | |
parent | 3bd4a68fe03c36b5a6ce6c8f7a5b52013fb61205 (diff) | |
download | puppet-nodo-d27a46c2847dc7e56a34f91fe92b40b6b389a878.tar.gz puppet-nodo-d27a46c2847dc7e56a34f91fe92b40b6b389a878.tar.bz2 |
Modprobe config for squeeze
-rw-r--r-- | files/etc/modprobe.d/blacklist.conf (renamed from files/etc/modprobe.d/blacklist) | 0 | ||||
-rw-r--r-- | manifests/subsystems/modprobe.pp | 30 |
2 files changed, 24 insertions, 6 deletions
diff --git a/files/etc/modprobe.d/blacklist b/files/etc/modprobe.d/blacklist.conf index 9d64fdc..9d64fdc 100644 --- a/files/etc/modprobe.d/blacklist +++ b/files/etc/modprobe.d/blacklist.conf diff --git a/manifests/subsystems/modprobe.pp b/manifests/subsystems/modprobe.pp index 01a2f91..45870af 100644 --- a/manifests/subsystems/modprobe.pp +++ b/manifests/subsystems/modprobe.pp @@ -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", + } + } } } |