mirror of
https://github.com/clearlinux/clearstack.git
synced 2026-08-19 05:27:24 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user