
This commit finishes the openstack refactor. All database config classes are stored in the location <project>::db::<db_type>. In the case of nova::db, it has been moved to nova::db::mysql. This commit cleans up all of the code to reflect this.
15 lines
444 B
Puppet
15 lines
444 B
Puppet
# db/allowed_hosts.pp
|
|
define nova::db::mysql::host_access ($user, $password, $database) {
|
|
database_user { "${user}@${name}":
|
|
password_hash => mysql_password($password),
|
|
provider => 'mysql',
|
|
require => Database[$database],
|
|
}
|
|
database_grant { "${user}@${name}/${database}":
|
|
# TODO figure out which privileges to grant.
|
|
privileges => "all",
|
|
provider => 'mysql',
|
|
require => Database_user["${user}@${name}"]
|
|
}
|
|
}
|