diff options
author | drebs <drebs@riseup.net> | 2012-01-07 22:04:34 -0200 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2012-01-07 22:04:34 -0200 |
commit | 9321d901c5a5c251b16df7b793affda4141b512f (patch) | |
tree | d2bf4783597b9530b7333fa93a7c691c4516127a /manifests/vserver.pp | |
parent | 1dee3ec7ea2f149ac78215f81333d8d01c658d22 (diff) | |
download | puppet-nodo-9321d901c5a5c251b16df7b793affda4141b512f.tar.gz puppet-nodo-9321d901c5a5c251b16df7b793affda4141b512f.tar.bz2 |
adding tor port support
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r-- | manifests/vserver.pp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 9474f00..99a8481 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -45,9 +45,9 @@ class nodo::vserver inherits nodo { # Define a vserver instance define instance($context, $ensure = 'running', $proxy = false, $puppetmaster = false, $gitd = false, $mail = false, - $icecast = false, $sound = false, $ticket = false, - $memory_limit = false, $distro = 'squeeze', $dns = false, - $munin_port = false, $monkeysphere_ssh_port = false) { + $icecast = false, $sound = false, $tor = false, + $ticket = false, $memory_limit = false, $distro = 'squeeze', + $dns = false, $munin_port = false, $monkeysphere_ssh_port = false) { # set instance id if $context <= 9 { @@ -66,6 +66,11 @@ class nodo::vserver inherits nodo { '': { $puppetmaster_nonssl_port = "8141" } } + # set tor port + case $tor_port { + '': { $tor_port = "9001" } + } + vserver { $name: ensure => $ensure, context => "$context", @@ -187,6 +192,12 @@ class nodo::vserver inherits nodo { "firewall::vserver::dns": destination => "192.168.0.$context"; } } + + if $tor { + class { + "firewall::vserver::tor": destination => "192.168.0.$context"; + } + } } } } |