blob: 1ba133199eb68c36a28944f6812d59d1dafd9871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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'
){
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, } }
}
}
|