# For storeconfigs
include mysql::server
- # Database creation as suggested by
- # http://reductivelabs.com/trac/puppet/wiki/Recipes/MySQLStoredConfiguration
- #exec { "create-storeconfigs-db":
- # command => "/usr/bin/mysqladmin create puppet",
- # unless => "/usr/bin/mysqlcheck -s puppet",
- # notify => Exec["create-storeconfigs-user"],
- #}
- #
- #$cmd = "/usr/bin/mysql -e 'grant all privileges on puppet.* to puppet@localhost identified by \"puppet\"'"
- #
- #exec { "create-storeconfigs-user":
- # command => $cmd,
- # refreshonly => true,
- #}
-
case $master_db_password {
'': { fail("Please set nodo::master::db_password in your config") }
}