Files
puppet-glance/manifests/db/mysql/host_access.pp
Dan Bode 52aae65a4c Move mysql code to db::mysql
This commit moves the mysql specific db manifests
to the namespace glance::db::mysql.

This is done for two reasons:
  - to create a directory loaction for manifests
    for all future supported datbases
  - to be consistent with other openstack projects
2012-04-22 23:54:42 -07:00

17 lines
474 B
Puppet

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