76cb8574ee
Enable the jobboard feature for the Octavia amphora provider. This requires Redis as a dependency, a precheck is added to ensure proper configuration. https://docs.openstack.org/octavia/latest/install/install-amphorav2.html Change-Id: Iec3c8a4b4e257557dc8ec995c41d0ad7e88e13e2
75 lines
2.5 KiB
YAML
75 lines
2.5 KiB
YAML
---
|
|
- name: Creating Octavia 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: "{{ octavia_database_shard_root_user }}"
|
|
login_password: "{{ database_password }}"
|
|
name: "{{ octavia_database_name }}"
|
|
run_once: True
|
|
delegate_to: "{{ groups['octavia-api'][0] }}"
|
|
when:
|
|
- not use_preconfigured_databases | bool
|
|
|
|
- name: Creating Octavia persistence 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: "{{ octavia_persistence_database_shard_root_user }}"
|
|
login_password: "{{ database_password }}"
|
|
name: "{{ octavia_persistence_database_name }}"
|
|
run_once: True
|
|
delegate_to: "{{ groups['octavia-api'][0] }}"
|
|
when:
|
|
- not use_preconfigured_databases | bool
|
|
|
|
- name: Creating Octavia 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: "{{ octavia_database_shard_root_user }}"
|
|
login_password: "{{ database_password }}"
|
|
name: "{{ octavia_database_user }}"
|
|
password: "{{ octavia_database_password }}"
|
|
host: "%"
|
|
priv: "{{ octavia_database_name }}.*:ALL"
|
|
append_privs: "yes"
|
|
run_once: True
|
|
delegate_to: "{{ groups['octavia-api'][0] }}"
|
|
when:
|
|
- not use_preconfigured_databases | bool
|
|
|
|
- name: Creating Octavia persistence 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: "{{ octavia_persistence_database_shard_root_user }}"
|
|
login_password: "{{ database_password }}"
|
|
name: "{{ octavia_persistence_database_user }}"
|
|
password: "{{ octavia_persistence_database_password }}"
|
|
host: "%"
|
|
priv: "{{ octavia_persistence_database_name }}.*:ALL"
|
|
append_privs: "yes"
|
|
run_once: True
|
|
delegate_to: "{{ groups['octavia-api'][0] }}"
|
|
when:
|
|
- not use_preconfigured_databases | bool
|
|
|
|
- import_tasks: bootstrap_service.yml
|