summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-08 11:52:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-08 11:52:12 -0300
commit8986162256f2ea6182d354b24af4db9480ccdc4f (patch)
treeb83ff3d867ffc1e60fe7c4c225cdc33e811eb181
parent503dc919f8db62a9888957b475ae4536202eaf9d (diff)
downloadpuppet-mpd-8986162256f2ea6182d354b24af4db9480ccdc4f.tar.gz
puppet-mpd-8986162256f2ea6182d354b24af4db9480ccdc4f.tar.bz2
Managing pulseaudio config
-rw-r--r--manifests/init.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6cdd0d8..0bae454 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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" ],
+ }
}