diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-17 12:02:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-17 12:02:38 -0300 |
commit | 713e21efd6d79b0f320c69001fdbf16b671a520c (patch) | |
tree | b595e139ede4063d1b58bf84dea19b8ff952b87a /manifests/all.pp | |
parent | dd87f6deba2a8908ac5ddf8cf1de8d45d49e49d3 (diff) | |
download | puppet-mpd-713e21efd6d79b0f320c69001fdbf16b671a520c.tar.gz puppet-mpd-713e21efd6d79b0f320c69001fdbf16b671a520c.tar.bz2 |
Split classes into files
Diffstat (limited to 'manifests/all.pp')
-rw-r--r-- | manifests/all.pp | 25 |
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" ], + } +} |