diff options
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 { |