-
Mark Goddard authored
These tasks were only necessary for migrating placement from nova to a separate service. Since the stable/stein branch has been cut, it is safe to remove these migration tasks in master. Change-Id: I4d477efad7ab6247aaff57d31ee83e137eb3f796
Mark Goddard authoredThese tasks were only necessary for migrating placement from nova to a separate service. Since the stable/stein branch has been cut, it is safe to remove these migration tasks in master. Change-Id: I4d477efad7ab6247aaff57d31ee83e137eb3f796
bootstrap.yml 1.16 KiB
---
- name: Creating placement databases
kolla_toolbox:
module_name: mysql_db
module_args:
login_host: "{{ database_address }}"
login_port: "{{ database_port }}"
login_user: "{{ database_user }}"
login_password: "{{ database_password }}"
name: "{{ placement_database_name }}"
register: database
run_once: True
delegate_to: "{{ groups['placement-api'][0] }}"
when:
- not use_preconfigured_databases | bool
- name: Creating placement databases user and setting permissions
kolla_toolbox:
module_name: mysql_user
module_args:
login_host: "{{ database_address }}"
login_port: "{{ database_port }}"
login_user: "{{ database_user }}"
login_password: "{{ database_password }}"
name: "{{ placement_database_user }}"
password: "{{ placement_database_password }}"
host: "%"
priv: "{{ placement_database_name }}.*:ALL"
append_privs: "yes"
run_once: True
delegate_to: "{{ groups['placement-api'][0] }}"
when:
- database.changed
- not use_preconfigured_databases | bool
- include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool