diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-10-13 13:35:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-10-13 13:35:54 -0300 |
commit | 72adda4cd17c496fd13061c867de8d2c4984e7af (patch) | |
tree | a4078575d35f96d862c166453dfe304782bba2c0 | |
parent | 2e4f48f1e47964aa09d0a11a4619dd3114665747 (diff) | |
download | puppet-apache-72adda4cd17c496fd13061c867de8d2c4984e7af.tar.gz puppet-apache-72adda4cd17c496fd13061c867de8d2c4984e7af.tar.bz2 |
Feat: site: adds hidden_service_ports param
-rw-r--r-- | manifests/site.pp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/site.pp b/manifests/site.pp index e890bb3..d0a3ff0 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -34,6 +34,7 @@ define apache::site( $custom_log_format = 'anon', $hidden_service = false, $hidden_service_version = 3, + $hidden_service_ports = [ "80 127.0.0.1:${apache::http_port}" ], $error_log = false, $custom_log = false, $custom_directives = false, @@ -60,7 +61,7 @@ define apache::site( if $hidden_service == true and $hidden_enabled == true { tor::daemon::hidden_service { "${name}": version => $hidden_service_version, - ports => [ "80 127.0.0.1:${apache::http_port}" ], + ports => $hidden_service_ports, data_dir => "${tor::daemon::data_dir}/hidden", require => File["${tor::daemon::data_dir}/hidden"], ensure => $ensure, |