summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/monitor.pp20
1 files changed, 18 insertions, 2 deletions
diff --git a/manifests/monitor.pp b/manifests/monitor.pp
index 6a51cff..e71e8fd 100644
--- a/manifests/monitor.pp
+++ b/manifests/monitor.pp
@@ -9,11 +9,18 @@ class onion::monitor(
hashed_control_password => $hashed_control_password,
}
- file { '/root/.arm':
+ file { '/var/lib/tor/.arm':
ensure => directory,
owner => root,
group => root,
- mode => 0644,
+ mode => 0750,
+ }
+
+ file { '/var/lib/tor/.arm':
+ ensure => directory,
+ owner => debian-tor,
+ group => debian-tor,
+ mode => 0750,
}
file { '/root/.arm/armrc':
@@ -24,4 +31,13 @@ class onion::monitor(
content => template('onion/armrc.erb'),
require => File['/root/.arm'],
}
+
+ file { '/var/lib/tor/.arm/armrc':
+ ensure => present,
+ owner => debian-tor,
+ group => debian-tor,
+ mode => 0640,
+ content => template('onion/armrc.erb'),
+ require => File['/var/lib/tor/.arm'],
+ }
}