blob: 2aca0e66f803ff9484d0ba8a71f53b62a4d849d8 (
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, } }
}
}
|