]> gitweb.fluxo.info Git - puppet-mpd.git/commitdiff
Managing pulseaudio config
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 8 Mar 2013 14:52:12 +0000 (11:52 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 8 Mar 2013 14:52:12 +0000 (11:52 -0300)
manifests/init.pp

index 6cdd0d83f0d46f836ae8901efd7f98152c27b076..0bae454ba27f1391e2dd365e74a7788bd0074dd9 100644 (file)
@@ -39,4 +39,17 @@ class mpd::all {
     gid     => 'audio',
     groups  => [ 'pulse', 'pulse-access' ],
   }
+
+  # Ensure pulseaudio is running systemwide so both mpd and users
+  # can share audio control.
+  #
+  # This could be managed elsewhere.
+  file { '/etc/default/pulseaudio':
+    ensure => present,
+    owner  => root,
+    group  => root,
+    mode   => 0644,
+    notify => Service['mpd'],
+    source => [ "puppet:///modules/mpd/pulseaudio" ],
+  }
 }