diff options
author | Micah Anderson <micah@riseup.net> | 2013-04-04 12:36:24 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-04-04 12:36:24 -0400 |
commit | dc367e53b45349ef849247fc93c664c548c90359 (patch) | |
tree | 14531add8c5bf7ac20f66c9dff0262319b7b0133 /manifests/init.pp | |
parent | 66d918ddb6454fd4a30baed9b49baad98e274243 (diff) |
clean-up commit: lint, standardize spacing, properly enclose variables, etc
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index d62bb9e..070baae 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,7 +1,10 @@ -class couchdb ( - $admin_pw, - $bigcouch = false, - $bigcouch_cookie = '' ) { +class couchdb ( $admin_pw = '', $bigcouch = false, $bigcouch_cookie = '' ) +{ + + if $admin_pw = '' { + err('Must set admin password by passing a value to the $admin_pw parameter') + } + case $::operatingsystem { Debian: { case $::lsbdistcodename { |