aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/nas.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/role/nas.pp')
-rw-r--r--manifests/role/nas.pp33
1 files changed, 29 insertions, 4 deletions
diff --git a/manifests/role/nas.pp b/manifests/role/nas.pp
index 428f23b..bae8b66 100644
--- a/manifests/role/nas.pp
+++ b/manifests/role/nas.pp
@@ -2,9 +2,6 @@ class nodo::role::nas {
# Minimal utilities
include nodo::utils::network::minimal
- # Firewall rules
- include firewall::nas
-
# Media folders and groups
include nodo::subsystem::media
@@ -27,7 +24,11 @@ class nodo::role::nas {
# http://lists.freedesktop.org/archives/avahi/2006-July/000824.html
# http://cups.org/documentation.php/doc-1.6/ref-cupsd-conf.html#BrowseLocalProtocols
# http://www.dns-sd.org/ServiceTypes.html
- include avahi
+ $avahi = hiera('nodo::role::nas::avahi', false)
+
+ if $avahi == true {
+ include avahi
+ }
# DLNA
$dlna = hiera('nodo::role::nas::dlna', false)
@@ -234,6 +235,15 @@ class nodo::role::nas {
}
#
+ # Torrent
+ #
+ $torrent = hiera('nodo::role::nas::torrent', false)
+
+ if $torrent == true {
+ include pyroscope
+ }
+
+ #
# DAAP
#
# References
@@ -249,4 +259,19 @@ class nodo::role::nas {
# music_dir => '/var/cache/media/noise',
# }
#}
+
+ # Firewall rules
+ class { 'firewall::nas':
+ ftp => $ftp,
+ tftp => $tftp,
+ http => $http,
+ nfsd => $nfs,
+ rsync => $rsync,
+ printer => $cups,
+ torrent => $torrent,
+ mpd => $mpd,
+ samba => $samba,
+ dlna => $dlna,
+ #daap => $daap,
+ }
}