diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-05-30 23:59:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-05-30 23:59:09 -0300 |
commit | 1bfe789032738772e2e8487151d23753420de34f (patch) | |
tree | 83f1a167779725744c5381febf95fea73da3de4d /manifests/role/nas.pp | |
parent | 47fc72228625a1febaee44846553fbec1abf5924 (diff) | |
download | puppet-nodo-1bfe789032738772e2e8487151d23753420de34f.tar.gz puppet-nodo-1bfe789032738772e2e8487151d23753420de34f.tar.bz2 |
Adding nodo::role::nas::vserver
Diffstat (limited to 'manifests/role/nas.pp')
-rw-r--r-- | manifests/role/nas.pp | 30 |
1 files changed, 17 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, + } } } |