From: Micah Anderson Date: Wed, 14 Mar 2012 15:45:52 +0000 (-0400) Subject: make sure that the control port's hashed password is not empty X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=082c9eeb13a5f8d0a672bd6272ba848204c87b27;p=puppet-tor.git make sure that the control port's hashed password is not empty --- diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 9da426b..5f4e064 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -123,6 +123,11 @@ class tor::daemon inherits tor { define control( $port = 0, $hashed_control_password = '', $ensure = present ) { + + if $hashed_control_password == '' and $ensure != 'absent' { + fail("You need to define the tor control password") + } + concatenated_file_part { '04.control': dir => $tor::daemon::snippet_dir, content => template('tor/torrc.control.erb'),