summaryrefslogtreecommitdiff
path: root/manifests/all.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/all.pp')
-rw-r--r--manifests/all.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/all.pp b/manifests/all.pp
new file mode 100644
index 0000000..3680464
--- /dev/null
+++ b/manifests/all.pp
@@ -0,0 +1,25 @@
+class mpd::all {
+ include mpd
+ include mpd::client
+
+ user { 'mpd':
+ ensure => present,
+ home => '/var/lib/mpd',
+ shell => '/bin/false',
+ gid => 'audio',
+ groups => [ 'audio', '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" ],
+ }
+}