Update the database connection for keystone

1. the pymysql is needed for the current release[0]
2. it should use keystone_database_address rather than
keystone_service_ip, because they may different.

[0]: https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/keystone/templates/keystone.conf.j2#L22

Change-Id: I7eb90544bd6be167df157ca352ca01e21ce781bd
This commit is contained in:
caoyuan 2018-04-22 23:22:15 +08:00
parent 1bdb98e9a3
commit 61a353cbd7
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ template for Keystone is:
log_dir = {{ keystone_log_dir }}
[database]
connection = mysql://{{ keystone_db_user }}:{{ database_keystone_password }}@{{ keystone_service_ip }}/keystone
connection = mysql+pymysql://{{ keystone_db_user }}:{{ database_keystone_password }}@{{ keystone_database_address }}/keystone
[revoke]
driver = keystone.contrib.revoke.backends.sql.Revoke