17 lines
474 B
Puppet
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}"]
|
|
}
|
|
}
|