Grant access to keystone,glance,nova,etc databases from other hosts

- In the case mariadb is installed on a separated server, it should
  accept incoming connections from the controller and compute hosts.
This commit is contained in:
Alberto Murillo
2016-01-08 16:59:44 -06:00
parent 23878ac32e
commit e34b03c539
+3 -3
View File
@@ -103,7 +103,7 @@ class MariaDB:
.format(mariadb_user, mariadb_pw, database, user,
password), debug=False)
util.run_command("mysql -u{0} -p{1} -e"
" \"GRANT ALL PRIVILEGES ON {2}.* TO '{3}'@'{4}'"
" IDENTIFIED BY '{5}';\""
" \"GRANT ALL PRIVILEGES ON {2}.* TO '{3}'@'%'"
" IDENTIFIED BY '{4}';\""
.format(mariadb_user, mariadb_pw, database, user,
host, password), debug=False)
password), debug=False)