Merge "Move database creation into role (ironic)"
This commit is contained in:
commit
da13a57bdb
@ -15,9 +15,6 @@
|
|||||||
|
|
||||||
ironic_service_name: ironic
|
ironic_service_name: ironic
|
||||||
|
|
||||||
ironic_galera_database: ironic
|
|
||||||
ironic_galera_user: ironic
|
|
||||||
|
|
||||||
# Ensure that the package state matches the global setting
|
# Ensure that the package state matches the global setting
|
||||||
ironic_package_state: "{{ package_state }}"
|
ironic_package_state: "{{ package_state }}"
|
||||||
|
|
||||||
|
@ -17,8 +17,12 @@
|
|||||||
hosts: ironic_all
|
hosts: ironic_all
|
||||||
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
||||||
user: root
|
user: root
|
||||||
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||||
|
tags:
|
||||||
|
- ironic
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- include: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
|
|
||||||
- include: common-tasks/oslomsg-rpc-vhost-user.yml
|
- include: common-tasks/oslomsg-rpc-vhost-user.yml
|
||||||
static: no
|
static: no
|
||||||
vars:
|
vars:
|
||||||
@ -29,14 +33,6 @@
|
|||||||
- inventory_hostname == groups['ironic_all'][0]
|
- inventory_hostname == groups['ironic_all'][0]
|
||||||
- groups[ironic_oslomsg_rpc_host_group] | length > 0
|
- groups[ironic_oslomsg_rpc_host_group] | length > 0
|
||||||
|
|
||||||
- include: common-tasks/mysql-db-user.yml
|
|
||||||
static: no
|
|
||||||
vars:
|
|
||||||
user_name: "{{ ironic_galera_user }}"
|
|
||||||
password: "{{ ironic_container_mysql_password }}"
|
|
||||||
login_host: "{{ ironic_galera_address }}"
|
|
||||||
db_name: "{{ ironic_galera_database }}"
|
|
||||||
when: inventory_hostname == groups['ironic_all'][0]
|
|
||||||
- include: common-tasks/unbound-clients.yml
|
- include: common-tasks/unbound-clients.yml
|
||||||
static: no
|
static: no
|
||||||
when:
|
when:
|
||||||
@ -53,11 +49,3 @@
|
|||||||
rsyslog_client_log_rotate_file: ironic_log_rotate
|
rsyslog_client_log_rotate_file: ironic_log_rotate
|
||||||
rsyslog_client_log_dir: "/var/log/ironic"
|
rsyslog_client_log_dir: "/var/log/ironic"
|
||||||
rsyslog_client_config_name: "99-ironic-rsyslog-client.conf"
|
rsyslog_client_config_name: "99-ironic-rsyslog-client.conf"
|
||||||
|
|
||||||
vars:
|
|
||||||
ironic_galera_user: ironic
|
|
||||||
ironic_galera_database: ironic
|
|
||||||
ironic_galera_address: "{{ galera_address }}"
|
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
|
||||||
tags:
|
|
||||||
- ironic
|
|
||||||
|
Loading…
Reference in New Issue
Block a user