]> gitweb.fluxo.info Git - puppet-tor.git/commitdiff
Managing the top level folder of a hidden service
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 10 Jun 2012 20:02:30 +0000 (17:02 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 10 Jun 2012 20:02:30 +0000 (17:02 -0300)
manifests/daemon.pp

index 6d8c315b2993d2f61dfd3f803d166a6d1ef30876..9c00e9a093dbc2d86df22876a9eae1c9ab3c9cb2 100644 (file)
@@ -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'),