# Generate the hash using 'tor --hash-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, content => template('onion/armrc.erb'), require => File['/root/.arm'], } }