puppet-cinder/manifests/db/mysql/host_access.pp
Joe Topjian 58e387284e changes
2012-09-10 06:04:34 +00:00

17 lines
474 B
Puppet

#
# Used to grant access to the cinder mysql DB
#
define cinder::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}"]
}
}