summaryrefslogtreecommitdiff
path: root/manifests/site.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-27 19:45:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-27 19:45:22 -0200
commit3b9f0426db4870bb1b54371face988a58ff8fc4b (patch)
tree19dee91a9b59731353023af9e1ac015471f69ee3 /manifests/site.pp
parent55e581331700ec09082711fd1c1b6e277572981f (diff)
downloadpuppet-apache-3b9f0426db4870bb1b54371face988a58ff8fc4b.tar.gz
puppet-apache-3b9f0426db4870bb1b54371face988a58ff8fc4b.tar.bz2
Class tor::daemon should be declared apart
Diffstat (limited to 'manifests/site.pp')
-rw-r--r--manifests/site.pp17
1 files changed, 0 insertions, 17 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 732559c..30f462e 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -27,23 +27,6 @@ define apache::site($ensure = present, $docroot = false, $redirect = false,
}
if $hidden_service == true {
- # Make sure that the tor daemon is included
- if !defined('tor::daemon') {
- class { 'tor::daemon': }
- }
-
- # It's important to use a subdir from the tor datadir
- # to ease backup/restore procedures as we don't mix
- # hidden service data with other tor files.
- if !defined(File["${tor::daemon::data_dir}/hidden"]) {
- file { "${tor::daemon::data_dir}/hidden":
- ensure => directory,
- owner => 'debian-tor',
- group => 'debian-tor',
- mode => 0700,
- }
- }
-
tor::daemon::hidden_service { $title:
ports => [ "80 127.0.0.1:80" ],
data_dir => "${tor::daemon::data_dir}/hidden",