source: trunk/puppet/modules/music_player_daemon/manifests/init.pp @ 736

Last change on this file since 736 was 422, checked in by sebas, 15 years ago

debian sources list with extras repos virtualbox+backports+debian-multimedia

File size: 930 bytes
Line 
1# copyright koumbit.org
2# Licence: GPL
3# derived from http://hg.koumbit.net/puppet-manifests/file/c6b915b4cbd7/nodes.pp#l160
4
5class music_player_daemon {
6
7   package { "mpd": ensure => "installed" }
8
9   file { "/etc/mpd.conf":
10       source => "puppet:///music_player_daemon/mpd.conf",
11       ensure => present,
12       require => Package["mpd"],
13       owner => "mpd", group => "audio", mode => "640",
14   }
15   file { "/var/lib/mpd/playlists/CTARadioCentral.m3u":
16       content => "http://onda.radio.cta.org.ar:8000/CTARadioCentral\n",
17       ensure => present,
18       require => Package["mpd"],
19   }
20   file { "/var/lib/mpd/playlists/RadioCanada-64.m3u":
21       content => "http://icy1.abacast.com:80/radiocanada-premierechaine-64\n",
22       ensure => present,
23       require => Package["mpd"],
24   }
25   service { "mpd":
26      ensure => "running",
27      require => Package['mpd'],
28      subscribe => File["/etc/mpd.conf"],
29   }
30}
Note: See TracBrowser for help on using the repository browser.