summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-06-02 11:49:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-06-02 11:49:52 -0300
commit67218ef7586bc69f850a3aca8b754beb148f8fde (patch)
tree63dda33cb5f96f223f9b3a95797d46d57d26b0bb
parentc12e70f55c0c441cb0211a8f0cc88981d2b5a724 (diff)
downloadpuppet-onion-67218ef7586bc69f850a3aca8b754beb148f8fde.tar.gz
puppet-onion-67218ef7586bc69f850a3aca8b754beb148f8fde.tar.bz2
Adds onion::client_authorization
-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'],
+ }
+}