From 67218ef7586bc69f850a3aca8b754beb148f8fde Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 2 Jun 2022 11:49:52 -0300 Subject: Adds onion::client_authorization --- manifests/client_authorization.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 manifests/client_authorization.pp 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'], + } +} -- cgit v1.2.3