From 1bfe789032738772e2e8487151d23753420de34f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 30 May 2013 23:59:09 -0300 Subject: Adding nodo::role::nas::vserver --- manifests/role/nas.pp | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'manifests/role/nas.pp') 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, + } } } -- cgit v1.2.3