diff options
author | mh <mh@immerda.ch> | 2010-08-06 19:36:40 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-08-06 19:36:40 +0200 |
commit | 7d904841c15873db9ac1745f659d8464fd45f41a (patch) | |
tree | 991567a2557fa59b6502d2c0bcf87f6c786c5c34 /manifests/puppetmaster/hasdb.pp | |
parent | 6bd681ab05072964efc95ecfe2816e371e45a862 (diff) |
codestyle - whitespace
Only code style and whitespace formatting issues. Everything should
no be in ligne.
Diffstat (limited to 'manifests/puppetmaster/hasdb.pp')
-rw-r--r-- | manifests/puppetmaster/hasdb.pp | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/manifests/puppetmaster/hasdb.pp b/manifests/puppetmaster/hasdb.pp index 82bbe47..1ba1331 100644 --- a/manifests/puppetmaster/hasdb.pp +++ b/manifests/puppetmaster/hasdb.pp @@ -1,19 +1,17 @@ define puppet::puppetmaster::hasdb( - $dbtype = 'mysql', - $dbname = 'puppet', - $dbhost = 'localhost', - # this is needed due to the collection of the databases - $dbhostfqdn = "${fqdn}", - $dbuser = 'puppet', - $dbpwd = $puppet_storeconfig_password, - $dbconnectinghost = 'locahost' + $dbtype = 'mysql', + $dbname = 'puppet', + $dbhost = 'localhost', + # this is needed due to the collection of the databases + $dbhostfqdn = "${fqdn}", + $dbuser = 'puppet', + $dbpwd = $puppet_storeconfig_password, + $dbconnectinghost = 'locahost' ){ - case $puppet_storeconfig_password { - '': { fail("No \$puppet_storeconfig_password is set, please set it in your manifests or site.pp to add a password") } - } + if !$puppet_storeconfig_password { fail("No \$puppet_storeconfig_password is set, please set it in your manifests or site.pp to add a password") } - case $dbtype { - 'mysql': { puppet::puppetmaster::hasdb::mysql{$name: dbname => $dbname, dbhost => $dbhost, dbuser => $dbuser, dbpwd => $dbpwd, } } - } + case $dbtype { + 'mysql': { puppet::puppetmaster::hasdb::mysql{$name: dbname => $dbname, dbhost => $dbhost, dbuser => $dbuser, dbpwd => $dbpwd, } } + } } |