aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-27 19:57:37 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-27 19:57:37 -0200
commitb87be95e71545797c31269d0851c5781ec509404 (patch)
tree2053ca32d46f972e2591264052dd1e3c29da850e /manifests
parentda1cf29591ca6e1ed68620f4db07b28e58aadf46 (diff)
downloadpuppet-nodo-b87be95e71545797c31269d0851c5781ec509404.tar.gz
puppet-nodo-b87be95e71545797c31269d0851c5781ec509404.tar.bz2
Class onion should be declared just once
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/onion.pp12
1 files changed, 5 insertions, 7 deletions
diff --git a/manifests/subsystems/onion.pp b/manifests/subsystems/onion.pp
index 3ec1a7b..91527ad 100644
--- a/manifests/subsystems/onion.pp
+++ b/manifests/subsystems/onion.pp
@@ -4,13 +4,11 @@ class onion {
# 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,
- }
+ file { "${tor::daemon::data_dir}/hidden":
+ ensure => directory,
+ owner => 'debian-tor',
+ group => 'debian-tor',
+ mode => 0700,
}
}