aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-29 17:37:33 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-29 17:37:33 -0200
commitfa0cceb62d710f36e4f6a36786db1a5a2e8cd2de (patch)
treed058775b412307c9c3979e172a641402aa3b8e0d /manifests
parentb669231b3bac4bfa8081b75d774752c155c5d493 (diff)
downloadpuppet-nodo-fa0cceb62d710f36e4f6a36786db1a5a2e8cd2de.tar.gz
puppet-nodo-fa0cceb62d710f36e4f6a36786db1a5a2e8cd2de.tar.bz2
Adding sound suport on node::vserver::instance
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp20
1 files changed, 17 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f04efda..9822e52 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -206,9 +206,23 @@ class nodo::vserver inherits nodo {
# tag => $name,
#}
- # TODO: sound support
- # http://wiki.debian.org/LinuxVserver
- # http://seehuhn.de/pages/vserver
+ # Sound support
+ if $sound {
+ if !defined(File["/usr/local/sbin/create-sound-devices"]) {
+ file { "/usr/local/sbin/create-sound-devices":
+ ensure => present,
+ source => "puppet://$server/modules/nodo/sound/devices.sh",
+ user => root,
+ group => root,
+ mode => 755,
+ }
+ }
+ exec { "/usr/local/sbin/create-sound-devices ${name}":
+ unless => "/usr/local/sbin/create-sound-devices ${name} --check",
+ user => root,
+ require => [ Exec["vs_create_${name}"], File["/usr/local/sbin/create-sound-devices"] ],
+ }
+ }
# Apply firewall rules just for running vservers
case $ensure {