Downcase all hostnames for MySQL user/db creation
Mysql puppet providers apply downcase method for hostnames, that lead us to errors when we use hostnames with upper-case letters. Change-Id: I0da9e9aac3504d3defdfbb8b916ae7e9ae2339db Closes-Bug: 1584247
This commit is contained in:
@@ -25,7 +25,7 @@ define openstacklib::db::mysql::host_access (
|
|||||||
) {
|
) {
|
||||||
validate_re($title, '_', 'Title must be $dbname_$host')
|
validate_re($title, '_', 'Title must be $dbname_$host')
|
||||||
|
|
||||||
$host = inline_template('<%= @title.split("_").last %>')
|
$host = inline_template('<%= @title.split("_").last.downcase %>')
|
||||||
|
|
||||||
mysql_user { "${user}@${host}":
|
mysql_user { "${user}@${host}":
|
||||||
password_hash => $password_hash,
|
password_hash => $password_hash,
|
||||||
|
|||||||
Reference in New Issue
Block a user