Merge "Move database creation into role (aodh)"
This commit is contained in:
@@ -14,10 +14,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
aodh_service_region: "{{ service_region }}"
|
aodh_service_region: "{{ service_region }}"
|
||||||
aodh_galera_user: aodh
|
|
||||||
aodh_galera_database: aodh
|
|
||||||
aodh_galera_address: "{{ internal_lb_vip_address }}"
|
|
||||||
aodh_connection_string: "mysql+pymysql://{{ aodh_galera_user }}:{{ aodh_container_db_password }}@{{ aodh_galera_address }}/{{ aodh_galera_database }}?charset=utf8"
|
|
||||||
|
|
||||||
aodh_service_in_ldap: "{{ service_ldap_backend_enabled }}"
|
aodh_service_in_ldap: "{{ service_ldap_backend_enabled }}"
|
||||||
aodh_service_publicuri: "{{ openstack_service_publicuri_proto|default(aodh_service_proto) }}://{{ external_lb_vip_address }}:{{ aodh_service_port }}"
|
aodh_service_publicuri: "{{ openstack_service_publicuri_proto|default(aodh_service_proto) }}://{{ external_lb_vip_address }}:{{ aodh_service_port }}"
|
||||||
|
|||||||
@@ -17,8 +17,12 @@
|
|||||||
hosts: aodh_all
|
hosts: aodh_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:
|
||||||
|
- aodh
|
||||||
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:
|
||||||
@@ -28,6 +32,7 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['aodh_api'][0]
|
- inventory_hostname == groups['aodh_api'][0]
|
||||||
- groups[aodh_oslomsg_rpc_host_group] | length > 0
|
- groups[aodh_oslomsg_rpc_host_group] | length > 0
|
||||||
|
|
||||||
- include: common-tasks/oslomsg-notify-vhost-user.yml
|
- include: common-tasks/oslomsg-notify-vhost-user.yml
|
||||||
static: no
|
static: no
|
||||||
vars:
|
vars:
|
||||||
@@ -43,18 +48,12 @@
|
|||||||
log_dirs:
|
log_dirs:
|
||||||
- src: "/openstack/log/{{ inventory_hostname }}-aodh"
|
- src: "/openstack/log/{{ inventory_hostname }}-aodh"
|
||||||
dest: "/var/log/aodh"
|
dest: "/var/log/aodh"
|
||||||
- include: common-tasks/mysql-db-user.yml
|
|
||||||
static: no
|
|
||||||
vars:
|
|
||||||
user_name: "{{ aodh_galera_user }}"
|
|
||||||
password: "{{ aodh_container_db_password }}"
|
|
||||||
login_host: "{{ aodh_galera_address }}"
|
|
||||||
db_name: "{{ aodh_galera_database }}"
|
|
||||||
when: inventory_hostname == groups['aodh_all'][0]
|
|
||||||
- include: common-tasks/unbound-clients.yml
|
- include: common-tasks/unbound-clients.yml
|
||||||
static: no
|
static: no
|
||||||
when:
|
when:
|
||||||
- hostvars['localhost']['resolvconf_enabled'] | bool
|
- hostvars['localhost']['resolvconf_enabled'] | bool
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: "os_aodh"
|
- role: "os_aodh"
|
||||||
|
|
||||||
@@ -71,6 +70,3 @@
|
|||||||
aodh_rabbitmq_servers: "{{ rabbitmq_servers }}"
|
aodh_rabbitmq_servers: "{{ rabbitmq_servers }}"
|
||||||
aodh_rabbitmq_port: "{{ rabbitmq_port }}"
|
aodh_rabbitmq_port: "{{ rabbitmq_port }}"
|
||||||
aodh_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}"
|
aodh_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}"
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
|
||||||
tags:
|
|
||||||
- aodh
|
|
||||||
|
|||||||
Reference in New Issue
Block a user