summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client_authorization.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/client_authorization.pp b/manifests/client_authorization.pp
new file mode 100644
index 0000000..5450b7e
--- /dev/null
+++ b/manifests/client_authorization.pp
@@ -0,0 +1,17 @@
+class onion::client_authorization {
+ file { '/var/lib/tor/client_authorization':
+ ensure => directory,
+ owner => 'debian-tor',
+ group => 'debian-tor',
+ mode => '0750',
+ #source => [
+ # 'puppet:///modules/site_onion/onion_auth',
+ # 'puppet:///modules/onion/onion_auth',
+ #],
+ }
+
+ tor::daemon::snippet { 'client_onion_auth_dir':
+ content => 'ClientOnionAuthDir /var/lib/tor/client_authorization',
+ require => File['/var/lib/tor/client_authorization'],
+ }
+}