Files
puppet-nova/manifests/db/mysql/host_access.pp
Dan Bode 0a5ed27e2a Finish db refactor
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.
2012-04-23 19:41:56 -07:00

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}"]
}
}