/
bootstrap.yml
38 lines (36 loc) · 1.18 KB
/
bootstrap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- name: Creating aodh database
become: true
kolla_toolbox:
container_engine: "{{ kolla_container_engine }}"
module_name: mysql_db
module_args:
login_host: "{{ database_address }}"
login_port: "{{ database_port }}"
login_user: "{{ aodh_database_shard_root_user }}"
login_password: "{{ database_password }}"
name: "{{ aodh_database_name }}"
run_once: True
delegate_to: "{{ groups['aodh-api'][0] }}"
when:
- not use_preconfigured_databases | bool
- name: Creating aodh database user and setting permissions
become: true
kolla_toolbox:
container_engine: "{{ kolla_container_engine }}"
module_name: mysql_user
module_args:
login_host: "{{ database_address }}"
login_port: "{{ database_port }}"
login_user: "{{ aodh_database_shard_root_user }}"
login_password: "{{ database_password }}"
name: "{{ aodh_database_user }}"
password: "{{ aodh_database_password }}"
host: "%"
priv: "{{ aodh_database_name }}.*:ALL"
append_privs: "yes"
run_once: True
delegate_to: "{{ groups['aodh-api'][0] }}"
when:
- not use_preconfigured_databases | bool
- import_tasks: bootstrap_service.yml