diff options
| -rw-r--r-- | puppet/modules/site_tor/manifests/init.pp | 19 | 
1 files changed, 9 insertions, 10 deletions
| diff --git a/puppet/modules/site_tor/manifests/init.pp b/puppet/modules/site_tor/manifests/init.pp index e62cb12d..9944bb2b 100644 --- a/puppet/modules/site_tor/manifests/init.pp +++ b/puppet/modules/site_tor/manifests/init.pp @@ -13,21 +13,20 @@ class site_tor {    class { 'tor::daemon': }    tor::daemon::relay { $nickname: -    port             => 9001, -    address          => $address, -    contact_info     => obfuscate_email($contact_emails), -    bandwidth_rate   => $bandwidth_rate, -    my_family        => $family +    port           => 9001, +    address        => $address, +    contact_info   => obfuscate_email($contact_emails), +    bandwidth_rate => $bandwidth_rate, +    my_family      => $family    }    if ( $tor_type == 'exit'){ -    tor::daemon::directory { $::hostname: port => 80 } +    # Only enable the daemon directory if the node isn't also a webapp node +    if ! member($::services, 'webapp') { +      tor::daemon::directory { $::hostname: port => 80 } +    }    }    else { -    tor::daemon::directory { $::hostname: -      port            => 80, -      port_front_page => ''; -    }      include site_tor::disable_exit    } | 
