Use SSL database connections with nova-manage
When Galera SSL is enabled, use SSL encrypted database connections with nova-manage commands where a connection string is provided. Change-Id: I7019b966b475c09a4e3218461941c1112ae28028 (cherry picked from commit 740a26e7eacbb5975d041b1f9aa7424a1cc9526c)
This commit is contained in:
parent
0b8fe922e6
commit
5d442899bd
@ -24,7 +24,7 @@
|
|||||||
- name: Create the cell0 mapping entry in the nova API DB
|
- name: Create the cell0 mapping entry in the nova API DB
|
||||||
command: >-
|
command: >-
|
||||||
{{ nova_bin }}/nova-manage cell_v2 map_cell0
|
{{ nova_bin }}/nova-manage cell_v2 map_cell0
|
||||||
--database_connection mysql+pymysql://{{ nova_api_galera_user }}:{{ nova_api_container_mysql_password }}@{{ nova_api_galera_address }}/{{ nova_cell0_database }}?charset=utf8
|
--database_connection mysql+pymysql://{{ nova_api_galera_user }}:{{ nova_api_container_mysql_password }}@{{ nova_api_galera_address }}/{{ nova_cell0_database }}?charset=utf8{% if nova_galera_use_ssl | bool %}&ssl_ca={{ nova_galera_ssl_ca_cert }}{% endif %}
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ nova_system_user_name }}"
|
become_user: "{{ nova_system_user_name }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user