diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-04-11 14:13:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-04-11 14:13:55 -0300 |
commit | 6e09c1c6f4c32cf186cec0157e9839d61b73e19f (patch) | |
tree | bc1f6413a4d63eb10589bf7d204ec202150df3bc | |
parent | 4fa5c3e7cdbd7160d6a6f3abc8a2eeb09b639c40 (diff) | |
download | puppet-nodo-6e09c1c6f4c32cf186cec0157e9839d61b73e19f.tar.gz puppet-nodo-6e09c1c6f4c32cf186cec0157e9839d61b73e19f.tar.bz2 |
Adding modprobe class and, new packages on utils::personal
-rw-r--r-- | files/etc/modprobe.d/blacklist | 3 | ||||
-rw-r--r-- | manifests/init.pp | 1 | ||||
-rw-r--r-- | manifests/physical.pp | 1 | ||||
-rw-r--r-- | manifests/subsystems/firewire.pp | 12 | ||||
-rw-r--r-- | manifests/subsystems/modprobe.pp | 10 | ||||
-rw-r--r-- | manifests/subsystems/utils.pp | 3 |
6 files changed, 19 insertions, 11 deletions
diff --git a/files/etc/modprobe.d/blacklist b/files/etc/modprobe.d/blacklist index 1505e86..3d8df3a 100644 --- a/files/etc/modprobe.d/blacklist +++ b/files/etc/modprobe.d/blacklist @@ -76,3 +76,6 @@ blacklist ohci1394 install ohci1394 false # Iff we should ever load the ohci1394 module, force the use of the 'phys_dma=0' option. options ohci1394 phys_dma=0 + +# PC Speaker +blacklist pcspkr diff --git a/manifests/init.pp b/manifests/init.pp index 1f72ac1..0e42f43 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -17,6 +17,7 @@ import "subsystems/websites.pp" import "subsystems/munin.pp" import "subsystems/pam.pp" import "subsystems/xorg.pp" +import "subsystems/modprobe.pp" # Import nodo classes import "nodo.pp" diff --git a/manifests/physical.pp b/manifests/physical.pp index 6422970..51fd155 100644 --- a/manifests/physical.pp +++ b/manifests/physical.pp @@ -3,6 +3,7 @@ class nodo::physical inherits nodo { include firewall include vserver::host include initramfs + include modprobe include firewire include sysctl include ups diff --git a/manifests/subsystems/firewire.pp b/manifests/subsystems/firewire.pp index 1c9609a..088e194 100644 --- a/manifests/subsystems/firewire.pp +++ b/manifests/subsystems/firewire.pp @@ -1,15 +1,7 @@ class firewire { - # keep firewire disabled - # see http://padrao.sarava.org/trac/wiki/Debian/Firewire - file { "/etc/modprobe.d/blacklist": - owner => "root", - group => "root", - mode => 0644, - ensure => present, - source => "puppet://$server/modules/nodo/etc/modprobe.d/blacklist", - } - # make sure ohci1394 is not loaded + # see http://padrao.sarava.org/trac/wiki/Debian/Firewire + # see also the modprobe class exec { "rmmod ohci1394": unless => "/bin/sh -c 'if `grep -q ^ohci1394 /proc/modules`; then false; else true; fi'", user => "root", diff --git a/manifests/subsystems/modprobe.pp b/manifests/subsystems/modprobe.pp new file mode 100644 index 0000000..6192f6d --- /dev/null +++ b/manifests/subsystems/modprobe.pp @@ -0,0 +1,10 @@ +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", + } +} diff --git a/manifests/subsystems/utils.pp b/manifests/subsystems/utils.pp index 4b66e24..67006b6 100644 --- a/manifests/subsystems/utils.pp +++ b/manifests/subsystems/utils.pp @@ -46,7 +46,8 @@ class utils::personal { 'audacious', 'qjackctl', 'bittorrent', 'subversion', 'fortunes-br', 'xine-ui', 'broffice.org', 'mozilla-firefox-adblock', 'cups-client', - 'amarok', 'mc' ]: + 'amarok', 'mc', 'wodim', + 'genisoimage', 'dvd+rw-tools' ]: ensure => installed, } |