icecast: Initial version of module.
This commit is contained in:
parent
4c454a7f44
commit
ec17f8b8b4
2 changed files with 205 additions and 0 deletions
33
icecast/manifests/init.pp
Normal file
33
icecast/manifests/init.pp
Normal file
|
@ -0,0 +1,33 @@
|
|||
|
||||
# Install Icecast server
|
||||
#
|
||||
# === Parameters:
|
||||
#
|
||||
# $sourcepass:
|
||||
# Password for stream sources.
|
||||
#
|
||||
# $adminpass:
|
||||
# Password for admin pages.
|
||||
#
|
||||
class icecast::server($sourcepass, $adminpass) {
|
||||
|
||||
package { "icecast":
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
file { "/etc/icecast.xml":
|
||||
ensure => present,
|
||||
content => template("icecast/icecast.xml.erb"),
|
||||
mode => "0640",
|
||||
owner => "root",
|
||||
group => "icecast",
|
||||
require => Package["icecast"],
|
||||
notify => Service["icecast"],
|
||||
}
|
||||
|
||||
service { "icecast":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue