diff options
| author | Micah Anderson <micah@riseup.net> | 2012-03-14 11:45:52 -0400 |
|---|---|---|
| committer | Micah Anderson <micah@riseup.net> | 2012-03-14 11:57:25 -0400 |
| commit | 082c9eeb13a5f8d0a672bd6272ba848204c87b27 (patch) | |
| tree | d4b9aa233acd662d717c8abee9e0cdad2d950fce | |
| parent | b4e7e4d4c0d1cfc83c04076959ccd6cb12eb1b69 (diff) | |
| download | puppet-tor-082c9eeb13a5f8d0a672bd6272ba848204c87b27.tar.gz puppet-tor-082c9eeb13a5f8d0a672bd6272ba848204c87b27.tar.bz2 | |
make sure that the control port's hashed password is not empty
| -rw-r--r-- | manifests/daemon.pp | 5 |
1 files changed, 5 insertions, 0 deletions
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'), |
