From 082c9eeb13a5f8d0a672bd6272ba848204c87b27 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 14 Mar 2012 11:45:52 -0400 Subject: make sure that the control port's hashed password is not empty --- manifests/daemon.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifests') 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'), -- cgit v1.2.3