summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/daemon.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index 6d8c315..9c00e9a 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -142,6 +142,15 @@ class tor::daemon inherits tor {
$data_dir = $tor::daemon::data_dir,
$ensure = present ) {
+ if !defined(File["$data_dir/.."]) {
+ file { "$data_dir/..":
+ ensure => present,
+ owner => 'debian-tor',
+ group => 'debian-tor',
+ mode => 0640,
+ }
+ }
+
concatenated_file_part { "05.hidden_service.${name}":
dir => $tor::daemon::snippet_dir,
content => template('tor/torrc.hidden_service.erb'),