diff options
-rw-r--r-- | manifests/init.pp | 13 |
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" ], + } } |