summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-27 20:12:36 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-27 20:12:36 -0200
commitf42c5bd165e96593fd27f6ff94fdd506281a525e (patch)
treefb5d8d837c5e0210952645ea64cce318aee7dd24 /manifests
parent2826afa8463be70d1a27c7300c7a52dc8484987a (diff)
downloadpuppet-apache-f42c5bd165e96593fd27f6ff94fdd506281a525e.tar.gz
puppet-apache-f42c5bd165e96593fd27f6ff94fdd506281a525e.tar.bz2
Introducing apache::site::hidden
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 65c9f83..a190550 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -26,7 +26,8 @@ define apache::site($ensure = present, $docroot = false, $redirect = false,
default => $mpm_group,
}
- if $hidden_service == true and defined('tor::daemon') {
+ $hidde_enabled = hiera('apache::site::hidden', false)
+ if $hidden_service == true and $hidden_enabled == true {
tor::daemon::hidden_service { $title:
ports => [ "80 127.0.0.1:80" ],
data_dir => "${tor::daemon::data_dir}/hidden",