aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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 {