From 73100a9df0e664ea43a92743e108f03a913bc92c Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 9 Dec 2008 23:11:53 +0000 Subject: adjusted to new usage of booleans --- manifests/defines/htpasswd.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/defines/htpasswd.pp b/manifests/defines/htpasswd.pp index a24aa20..a702875 100644 --- a/manifests/defines/htpasswd.pp +++ b/manifests/defines/htpasswd.pp @@ -5,7 +5,7 @@ define apache::htpasswd_user( $site = 'absent', $username = 'absent', $password, - $password_iscrypted = 'false', + $password_iscrypted = false, $ensure = 'present', $path = 'absent' ){ @@ -21,9 +21,10 @@ define apache::htpasswd_user( 'absent': { $real_path = "/var/www/htpasswds/${real_site}" } default: { $real_path = $path } } - case $password_iscrypted { - 'false': { $real_password = htpasswd_sha1($password) } - default: { $real_password = $password } + if $password_iscrypted { + $real_password = $password + } else + $real_password = htpasswd_sha1($password) } line{"htpasswd_for_${real_site}": -- cgit v1.2.3