diff options
author | Michael Stahnke <stahnma@puppetlabs.com> | 2012-10-18 20:33:09 -0700 |
---|---|---|
committer | Michael Stahnke <stahnma@puppetlabs.com> | 2012-10-18 20:34:58 -0700 |
commit | 4b8e631e3a3106eece4f8435cb18b02e9ec6253a (patch) | |
tree | b434dfb4467509d766770bb38aa12bad15f94ff2 /manifests/init.pp | |
download | puppet-daap_server-4b8e631e3a3106eece4f8435cb18b02e9ec6253a.tar.gz puppet-daap_server-4b8e631e3a3106eece4f8435cb18b02e9ec6253a.tar.bz2 |
Initial commit
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..f34cb24 --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,15 @@ +#IPTABLES RULES +# /sbin/iptables -I INPUT -p tcp --dport 3689 -j ACCEPT +# /sbin/iptables -I INPUT -p udp --dport 3689 -j ACCEPT +# Firewall fixup + +class daap_server($collection_name = 'DAAP Music', $music_dir = '/srv/music' ) { + if $::osfamily == 'RedHat' { + class { 'daap_server::setup': + music_dir => $music_dir, + collection_name => $collection_name, + } + } else { + notice("Your operating system $::operatingsystem is not supported with this module (daap_server)") + } +} |