diff options
Diffstat (limited to 'manifests/monitor.pp')
-rw-r--r-- | manifests/monitor.pp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/manifests/monitor.pp b/manifests/monitor.pp new file mode 100644 index 0000000..d6d0f03 --- /dev/null +++ b/manifests/monitor.pp @@ -0,0 +1,27 @@ +# Generate the hash using 'tor --hash-password <password>' +class onion::monitor( + $control_password = hiera('onion::monitor::control_password'), + $hashed_control_password = hiera('onion::monitor::hashed_control_password') +) { + tor::daemon::control{ "control": + port => 9051, + ensure => present, + hashed_control_password => $hashed_control_password, + } + + file { '/root/.arm': + ensure => directory, + owner => root, + group => root, + mode => 0644, + } + + file { '/root/.arm/armrc': + ensure => present, + owner => root, + group => root, + mode => 0640, + source => template('onion/armrc.erb'), + require => File['/root/.arm'], + } +} |