diff options
author | drebs <drebs@riseup.net> | 2012-01-11 02:48:40 -0200 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2012-01-11 02:48:40 -0200 |
commit | d526b25c7431a3a8bc46695c4c3b0443d3c1dd1a (patch) | |
tree | cad251aa68c19d07497986f839b2b8d29b9c0f17 /manifests | |
parent | 7cc1ee86d82c30c20d062cfbf8108705804ed22f (diff) | |
download | puppet-tor-d526b25c7431a3a8bc46695c4c3b0443d3c1dd1a.tar.gz puppet-tor-d526b25c7431a3a8bc46695c4c3b0443d3c1dd1a.tar.bz2 |
fixing parameter path
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/daemon.pp | 9 |
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, |