summaryrefslogtreecommitdiff
path: root/manifests/all.pp
blob: 368046465a6c69aa3b29cee1ae536259fda65a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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" ],
  }
}