class modprobe { # keep firewire disabled among other things case $lsbdistcodename { 'lenny': { file { "/etc/modprobe.d/blacklist": owner => "root", group => "root", mode => 0644, ensure => present, source => "puppet:///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:///modules/nodo/etc/modprobe.d/blacklist.conf", } } } } class modprobe::laptop { file { "/etc/modules": owner => "root", group => "root", mode => 0644, ensure => present, source => "puppet:///modules/nodo/etc/modules/laptop", } # see http://wiki.debian.org/DebianAcerOne#Cardreader file { "/etc/modprobe.d/aspire-blacklist-memstick.conf": owner => "root", group => "root", mode => 0644, ensure => present, source => "puppet:///modules/nodo/etc/modprobe.d/aspire-blacklist-memstick.conf", } }