aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2012-01-11 02:48:40 -0200
committerdrebs <drebs@riseup.net>2012-01-11 02:48:40 -0200
commitd526b25c7431a3a8bc46695c4c3b0443d3c1dd1a (patch)
treecad251aa68c19d07497986f839b2b8d29b9c0f17 /manifests
parent7cc1ee86d82c30c20d062cfbf8108705804ed22f (diff)
downloadpuppet-tor-d526b25c7431a3a8bc46695c4c3b0443d3c1dd1a.tar.gz
puppet-tor-d526b25c7431a3a8bc46695c4c3b0443d3c1dd1a.tar.bz2
fixing parameter path
Diffstat (limited to 'manifests')
-rw-r--r--manifests/daemon.pp9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index aaa0ac5..a11e19a 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -4,7 +4,7 @@ class tor::daemon inherits tor {
# config variables
$data_dir = '/var/tor'
$config_file = '/etc/tor/torrc'
- $spool_dir = '/var/lib/puppet/modules/tor/torrc.d'
+ $spool_dir = '/var/lib/puppet/modules/tor'
# packages, user, group
group { 'debian-tor':
@@ -45,10 +45,15 @@ class tor::daemon inherits tor {
file {"${spool_dir}":
ensure => directory,
- force => true,
owner => 'debian-tor', group => 'debian-tor', mode => 0755,
}
+ file {"${spool_dir}/torrc.d":
+ ensure => directory,
+ owner => 'debian-tor', group => 'debian-tor', mode => 0755,
+ require => File[${spool_dir}],
+ }
+
# tor configuration file
concatenated_file { "${config_file}":
dir => $spool_dir,