diff options
Diffstat (limited to 'manifests/subsystems/modprobe.pp')
-rw-r--r-- | manifests/subsystems/modprobe.pp | 30 |
1 files changed, 24 insertions, 6 deletions
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", + } + } } } |