summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-12-09 23:11:53 +0000
committermh <mh@immerda.ch>2008-12-09 23:11:53 +0000
commit73100a9df0e664ea43a92743e108f03a913bc92c (patch)
tree5760cdf55e77c4e111d77ea5146f4e9106e2cf9a
parentfe39299a0b8f9536c7be47ce9d9655885806fcd7 (diff)
adjusted to new usage of booleans
-rw-r--r--manifests/defines/htpasswd.pp9
1 files 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}":