d5567e6aef
* Fix following warnings: * double quoted string containing no variables * indentation of => is not properly aligned * quoted boolean value found * variable not enclosed in {} * Fix following errors: * two-space soft tabs not used * Remove quotes around class in include/require statements * Remove some comments from the code, they added no value Change-Id: I341b37f2c6795951f3285037b2fa612d767a4474
17 lines
490 B
Puppet
17 lines
490 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}"]
|
|
}
|
|
}
|