diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-27 20:04:07 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-27 20:04:07 -0200 |
commit | e3e8c8196c0d30ea4130ac076ce7bb06dd20d358 (patch) | |
tree | b89a41ac61dae4d3b662b933d0df0a3be58b0d59 | |
parent | c12b27bec27ce461e4c4a5d800d0b7d0634e10c8 (diff) | |
download | puppet-apache-e3e8c8196c0d30ea4130ac076ce7bb06dd20d358.tar.gz puppet-apache-e3e8c8196c0d30ea4130ac076ce7bb06dd20d358.tar.bz2 |
Declaring hidden service just if tor class is defined
-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", |