diff options
-rw-r--r-- | manifests/site.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/site.pp b/manifests/site.pp index 30f462e..6e2fd1f 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -26,7 +26,7 @@ define apache::site($ensure = present, $docroot = false, $redirect = false, default => $mpm_group, } - if $hidden_service == true { + if $hidden_service == true and defined('::tor::daemon') { tor::daemon::hidden_service { $title: ports => [ "80 127.0.0.1:80" ], data_dir => "${tor::daemon::data_dir}/hidden", |