summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-07 21:54:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-07 21:54:52 -0300
commit0344c95009245a43cacd874b81b087dad43ca05e (patch)
treed0686008cc87f6eb7760ac7ed9c67d3e76505373
parentb9abb82eec2551441d940a35be91a4dddfb0c0f5 (diff)
downloadpuppet-onion-0344c95009245a43cacd874b81b087dad43ca05e.tar.gz
puppet-onion-0344c95009245a43cacd874b81b087dad43ca05e.tar.bz2
Replicating arm config to debian-tor user
-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'],
+ }
}