aboutsummaryrefslogtreecommitdiff
path: root/manifests/role
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/role')
-rw-r--r--manifests/role/nas.pp30
-rw-r--r--manifests/role/nas/vserver.pp5
2 files changed, 22 insertions, 13 deletions
diff --git a/manifests/role/nas.pp b/manifests/role/nas.pp
index 0d32a7d..e4fbbf9 100644
--- a/manifests/role/nas.pp
+++ b/manifests/role/nas.pp
@@ -1,4 +1,6 @@
-class nodo::role::nas {
+class nodo::role::nas(
+ $virtual = false,
+) {
# Minimal utilities
include nodo::utils::network::minimal
@@ -285,17 +287,19 @@ class nodo::role::nas {
#}
# 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,
+ if $virtual == false {
+ 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,
+ }
}
}
diff --git a/manifests/role/nas/vserver.pp b/manifests/role/nas/vserver.pp
new file mode 100644
index 0000000..da3786d
--- /dev/null
+++ b/manifests/role/nas/vserver.pp
@@ -0,0 +1,5 @@
+class nodo::role::nas::vserver inherits nodo::base::vserver {
+ class { 'nodo::role::nas':
+ virtual => true,
+ }
+}