Adding container_engine to kolla_toolbox module
Second part of patchset: https://review.opendev.org/c/openstack/kolla-ansible/+/799229/ in which was suggested to split patch into smaller ones. THis change adds container_engine to module parameters so when we introduce podman, kolla_toolbox can be used for both engines. Signed-off-by: Ivan Halomi <i.halomi@partner.samsung.com> Co-authored-by: Martin Hiner <m.hiner@partner.samsung.com> Change-Id: Ic2093aa9341a0cb36df8f340cf290d62437504ad
This commit is contained in:
parent
0761285f90
commit
4ca2d41762
@ -33,6 +33,11 @@ description:
|
|||||||
- A module targerting at invoking ansible module in kolla_toolbox
|
- A module targerting at invoking ansible module in kolla_toolbox
|
||||||
container as used by Kolla project.
|
container as used by Kolla project.
|
||||||
options:
|
options:
|
||||||
|
container_engine:
|
||||||
|
description:
|
||||||
|
- Name of container engine to use
|
||||||
|
required: True
|
||||||
|
type: str
|
||||||
module_name:
|
module_name:
|
||||||
description:
|
description:
|
||||||
- The module name to invoke
|
- The module name to invoke
|
||||||
@ -73,10 +78,12 @@ EXAMPLES = '''
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Ensure the direct absent
|
- name: Ensure the direct absent
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: docker
|
||||||
module_name: file
|
module_name: file
|
||||||
module_args: path=/tmp/a state=absent
|
module_args: path=/tmp/a state=absent
|
||||||
- name: Create mysql database
|
- name: Create mysql database
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: docker
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: 192.168.1.10
|
login_host: 192.168.1.10
|
||||||
@ -85,6 +92,7 @@ EXAMPLES = '''
|
|||||||
name: testdb
|
name: testdb
|
||||||
- name: Creating default user role
|
- name: Creating default user role
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: docker
|
||||||
module_name: os_keystone_role
|
module_name: os_keystone_role
|
||||||
module_args:
|
module_args:
|
||||||
name: _member_
|
name: _member_
|
||||||
@ -138,6 +146,7 @@ def docker_supports_environment_in_exec(client):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
specs = dict(
|
specs = dict(
|
||||||
|
container_engine=dict(required=True, type='str'),
|
||||||
module_name=dict(required=True, type='str'),
|
module_name=dict(required=True, type='str'),
|
||||||
module_args=dict(type='str'),
|
module_args=dict(type='str'),
|
||||||
module_extra_vars=dict(type='json'),
|
module_extra_vars=dict(type='json'),
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating aodh database
|
- name: Creating aodh database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating aodh database user and setting permissions
|
- name: Creating aodh database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating barbican database
|
- name: Creating barbican database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating barbican database user and setting permissions
|
- name: Creating barbican database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating blazar database
|
- name: Creating blazar database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating blazar database user and setting permissions
|
- name: Creating blazar database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -36,6 +38,7 @@
|
|||||||
- name: Creating blazar host aggregate
|
- name: Creating blazar host aggregate
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_nova_host_aggregate
|
module_name: os_nova_host_aggregate
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ openstack_auth }}"
|
auth: "{{ openstack_auth }}"
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
- name: Associate the ResellerAdmin role and ceilometer user
|
- name: Associate the ResellerAdmin role and ceilometer user
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_user_role"
|
module_name: "os_user_role"
|
||||||
module_args:
|
module_args:
|
||||||
project: "service"
|
project: "service"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Cinder database
|
- name: Creating Cinder database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Cinder database user and setting permissions
|
- name: Creating Cinder database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Cloudkitty database
|
- name: Creating Cloudkitty database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Cloudkitty database user and setting permissions
|
- name: Creating Cloudkitty database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -36,6 +38,7 @@
|
|||||||
- name: Creating Cloudkitty influxdb database
|
- name: Creating Cloudkitty influxdb database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: influxdb_database
|
module_name: influxdb_database
|
||||||
module_args:
|
module_args:
|
||||||
hostname: "{{ influxdb_address }}"
|
hostname: "{{ influxdb_address }}"
|
||||||
@ -49,6 +52,7 @@
|
|||||||
- name: Checking if Cloudkitty elasticsearch index exists
|
- name: Checking if Cloudkitty elasticsearch index exists
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "{{ cloudkitty_elasticsearch_url }}/{{ cloudkitty_elasticsearch_index_name }}"
|
url: "{{ cloudkitty_elasticsearch_url }}/{{ cloudkitty_elasticsearch_index_name }}"
|
||||||
@ -61,6 +65,7 @@
|
|||||||
- name: Creating Cloudkitty elasticsearch index
|
- name: Creating Cloudkitty elasticsearch index
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "{{ cloudkitty_elasticsearch_url }}/{{ cloudkitty_elasticsearch_index_name }}"
|
url: "{{ cloudkitty_elasticsearch_url }}/{{ cloudkitty_elasticsearch_index_name }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating cyborg database
|
- name: Creating cyborg database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating cyborg database user and setting permissions
|
- name: Creating cyborg database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Designate databases
|
- name: Creating Designate databases
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -19,6 +20,7 @@
|
|||||||
- name: Creating Designate databases user and setting permissions
|
- name: Creating Designate databases user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
vars:
|
vars:
|
||||||
elasticsearch_shard_body: {"transient": {"cluster.routing.allocation.enable": "none"}}
|
elasticsearch_shard_body: {"transient": {"cluster.routing.allocation.enable": "none"}}
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "{{ elasticsearch_internal_endpoint }}/_cluster/settings"
|
url: "{{ elasticsearch_internal_endpoint }}/_cluster/settings"
|
||||||
@ -20,6 +21,7 @@
|
|||||||
- name: Perform a synced flush
|
- name: Perform a synced flush
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "{{ elasticsearch_internal_endpoint }}/_flush/synced"
|
url: "{{ elasticsearch_internal_endpoint }}/_flush/synced"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Creating Freezer database
|
- name: Creating Freezer database
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
|
|
||||||
- name: Creating Freezer database user and setting permissions
|
- name: Creating Freezer database user and setting permissions
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Glance database
|
- name: Creating Glance database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Glance database user and setting permissions
|
- name: Creating Glance database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Enable log_bin_trust_function_creators function
|
- name: Enable log_bin_trust_function_creators function
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_variables
|
module_name: mysql_variables
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -38,6 +39,7 @@
|
|||||||
- name: Disable log_bin_trust_function_creators function
|
- name: Disable log_bin_trust_function_creators function
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_variables
|
module_name: mysql_variables
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
- name: Enable log_bin_trust_function_creators function
|
- name: Enable log_bin_trust_function_creators function
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_variables
|
module_name: mysql_variables
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -103,6 +104,7 @@
|
|||||||
- name: Disable log_bin_trust_function_creators function
|
- name: Disable log_bin_trust_function_creators function
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_variables
|
module_name: mysql_variables
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating gnocchi database
|
- name: Creating gnocchi database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating gnocchi database user and setting permissions
|
- name: Creating gnocchi database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
service: "{{ grafana_services[service_name] }}"
|
service: "{{ grafana_services[service_name] }}"
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "http://{{ api_interface_address | put_address_in_context('url') }}:{{ grafana_server_port }}/login"
|
url: "http://{{ api_interface_address | put_address_in_context('url') }}:{{ grafana_server_port }}/login"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating grafana database
|
- name: Creating grafana database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating grafana database user and setting permissions
|
- name: Creating grafana database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Wait for grafana application ready
|
- name: Wait for grafana application ready
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "{{ grafana_internal_endpoint }}/login"
|
url: "{{ grafana_internal_endpoint }}/login"
|
||||||
@ -15,6 +16,7 @@
|
|||||||
- name: Enable grafana datasources
|
- name: Enable grafana datasources
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "{{ grafana_internal_endpoint }}/api/datasources"
|
url: "{{ grafana_internal_endpoint }}/api/datasources"
|
||||||
@ -36,6 +38,7 @@
|
|||||||
- name: Disable Getting Started panel
|
- name: Disable Getting Started panel
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: uri
|
module_name: uri
|
||||||
module_args:
|
module_args:
|
||||||
url: "{{ grafana_internal_endpoint }}/api/user/helpflags/1"
|
url: "{{ grafana_internal_endpoint }}/api/user/helpflags/1"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Heat database
|
- name: Creating Heat database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Heat database user and setting permissions
|
- name: Creating Heat database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Horizon database
|
- name: Creating Horizon database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Horizon database user and setting permissions
|
- name: Creating Horizon database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Ironic database
|
- name: Creating Ironic database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -23,6 +24,7 @@
|
|||||||
- name: Creating Ironic database user and setting permissions
|
- name: Creating Ironic database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating keystone database
|
- name: Creating keystone database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Keystone database user and setting permissions
|
- name: Creating Keystone database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
- name: Creating default user role
|
- name: Creating default user role
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_role"
|
module_name: "os_keystone_role"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ keystone_default_user_role }}"
|
name: "{{ keystone_default_user_role }}"
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
- name: Create unexisting domains
|
- name: Create unexisting domains
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_domain"
|
module_name: "os_keystone_domain"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ item.openstack_domain }}"
|
name: "{{ item.openstack_domain }}"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
- name: Enable log_bin_trust_function_creators function
|
- name: Enable log_bin_trust_function_creators function
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_variables
|
module_name: mysql_variables
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -35,6 +36,7 @@
|
|||||||
- name: Disable log_bin_trust_function_creators function
|
- name: Disable log_bin_trust_function_creators function
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_variables
|
module_name: mysql_variables
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Magnum database
|
- name: Creating Magnum database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Magnum database user and setting permissions
|
- name: Creating Magnum database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
- name: Creating Magnum trustee domain
|
- name: Creating Magnum trustee domain
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_domain"
|
module_name: "os_keystone_domain"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ magnum_trustee_domain }}"
|
name: "{{ magnum_trustee_domain }}"
|
||||||
@ -23,6 +24,7 @@
|
|||||||
- name: Creating Magnum trustee user
|
- name: Creating Magnum trustee user
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_user"
|
module_name: "os_user"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ magnum_trustee_domain_admin }}"
|
name: "{{ magnum_trustee_domain_admin }}"
|
||||||
@ -37,6 +39,7 @@
|
|||||||
- name: Creating Magnum trustee user role
|
- name: Creating Magnum trustee user role
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_user_role"
|
module_name: "os_user_role"
|
||||||
module_args:
|
module_args:
|
||||||
domain: "{{ trustee_domain.id }}"
|
domain: "{{ trustee_domain.id }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Manila database
|
- name: Creating Manila database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Manila database user and setting permissions
|
- name: Creating Manila database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
host: "{{ mariadb_shards_info.shards[shard_id].hosts[0] }}"
|
host: "{{ mariadb_shards_info.shards[shard_id].hosts[0] }}"
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ host }}"
|
login_host: "{{ host }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating shard root mysql user
|
- name: Creating shard root mysql user
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ api_interface_address }}"
|
login_host: "{{ api_interface_address }}"
|
||||||
@ -18,6 +19,7 @@
|
|||||||
- name: Creating mysql monitor user
|
- name: Creating mysql monitor user
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ api_interface_address }}"
|
login_host: "{{ api_interface_address }}"
|
||||||
@ -34,6 +36,7 @@
|
|||||||
- name: Creating the Mariabackup database
|
- name: Creating the Mariabackup database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ api_interface_address }}"
|
login_host: "{{ api_interface_address }}"
|
||||||
@ -48,6 +51,7 @@
|
|||||||
- name: Creating database backup user and setting permissions
|
- name: Creating database backup user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ api_interface_address }}"
|
login_host: "{{ api_interface_address }}"
|
||||||
@ -66,6 +70,7 @@
|
|||||||
- name: Granting permissions on Mariabackup database to backup user
|
- name: Granting permissions on Mariabackup database to backup user
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ api_interface_address }}"
|
login_host: "{{ api_interface_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Masakari database
|
- name: Creating Masakari database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Masakari database user and setting permissions
|
- name: Creating Masakari database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Mistral database
|
- name: Creating Mistral database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Mistral database user and setting permissions
|
- name: Creating Mistral database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating monasca databases
|
- name: Creating monasca databases
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ monasca_database_address }}"
|
login_host: "{{ monasca_database_address }}"
|
||||||
@ -19,6 +20,7 @@
|
|||||||
- name: Creating monasca database user and setting permissions
|
- name: Creating monasca database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ monasca_database_address }}"
|
login_host: "{{ monasca_database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Murano database
|
- name: Creating Murano database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Murano database user and setting permissions
|
- name: Creating Murano database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Neutron database
|
- name: Creating Neutron database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Neutron database user and setting permissions
|
- name: Creating Neutron database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Nova cell database
|
- name: Creating Nova cell database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ nova_cell_database_address }}"
|
login_host: "{{ nova_cell_database_address }}"
|
||||||
@ -16,6 +17,7 @@
|
|||||||
- name: Creating Nova cell database user and setting permissions
|
- name: Creating Nova cell database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ nova_cell_database_address }}"
|
login_host: "{{ nova_cell_database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Nova databases
|
- name: Creating Nova databases
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -19,6 +20,7 @@
|
|||||||
- name: Creating Nova databases user and setting permissions
|
- name: Creating Nova databases user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Octavia database
|
- name: Creating Octavia database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Octavia database user and setting permissions
|
- name: Creating Octavia database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Get amphora flavor info
|
- name: Get amphora flavor info
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_flavor_info
|
module_name: os_flavor_info
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -16,6 +17,7 @@
|
|||||||
- name: Get {{ octavia_service_auth_project }} project id
|
- name: Get {{ octavia_service_auth_project }} project id
|
||||||
become: True
|
become: True
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_project_info
|
module_name: os_project_info
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -32,6 +34,7 @@
|
|||||||
- name: Get security groups for octavia
|
- name: Get security groups for octavia
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_security_group
|
module_name: os_security_group
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -50,6 +53,7 @@
|
|||||||
- name: Get loadbalancer management network
|
- name: Get loadbalancer management network
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_networks_info
|
module_name: os_networks_info
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Create ports for Octavia health-manager nodes
|
- name: Create ports for Octavia health-manager nodes
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_port
|
module_name: os_port
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Create amphora flavor
|
- name: Create amphora flavor
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_nova_flavor
|
module_name: os_nova_flavor
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -25,6 +26,7 @@
|
|||||||
- name: Create nova keypair for amphora
|
- name: Create nova keypair for amphora
|
||||||
become: True
|
become: True
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_keypair
|
module_name: os_keypair
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -40,6 +42,7 @@
|
|||||||
- name: Get {{ octavia_service_auth_project }} project id
|
- name: Get {{ octavia_service_auth_project }} project id
|
||||||
become: True
|
become: True
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_project_info
|
module_name: os_project_info
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -54,6 +57,7 @@
|
|||||||
- name: Create security groups for octavia
|
- name: Create security groups for octavia
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_security_group
|
module_name: os_security_group
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -73,6 +77,7 @@
|
|||||||
- name: Add rules for security groups
|
- name: Add rules for security groups
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_security_group_rule
|
module_name: os_security_group_rule
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -93,6 +98,7 @@
|
|||||||
- name: Create loadbalancer management network
|
- name: Create loadbalancer management network
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_network
|
module_name: os_network
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
@ -114,6 +120,7 @@
|
|||||||
- name: Create loadbalancer management subnet
|
- name: Create loadbalancer management subnet
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: os_subnet
|
module_name: os_subnet
|
||||||
module_args:
|
module_args:
|
||||||
auth: "{{ octavia_user_auth }}"
|
auth: "{{ octavia_user_auth }}"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
- name: Adding octavia related roles
|
- name: Adding octavia related roles
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_role"
|
module_name: "os_keystone_role"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
- name: Set system-id and hw-offload
|
- name: Set system-id and hw-offload
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
user: root
|
user: root
|
||||||
module_name: openvswitch_db
|
module_name: openvswitch_db
|
||||||
module_args:
|
module_args:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Create br-int bridge on OpenvSwitch
|
- name: Create br-int bridge on OpenvSwitch
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
user: root
|
user: root
|
||||||
module_name: openvswitch_bridge
|
module_name: openvswitch_bridge
|
||||||
module_args:
|
module_args:
|
||||||
@ -16,6 +17,7 @@
|
|||||||
ovn_cms_opts: "{{ 'enable-chassis-as-gw' if inventory_hostname in groups['ovn-controller-network'] else '' }}"
|
ovn_cms_opts: "{{ 'enable-chassis-as-gw' if inventory_hostname in groups['ovn-controller-network'] else '' }}"
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
user: root
|
user: root
|
||||||
module_name: openvswitch_db
|
module_name: openvswitch_db
|
||||||
module_args:
|
module_args:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating placement databases
|
- name: Creating placement databases
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating placement databases user and setting permissions
|
- name: Creating placement databases user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
shard_root_user: "{% if mariadb_loadbalancer == 'haproxy' %}{{ database_user }}{% else %}{{ mariadb_shard_root_user_prefix }}{{ shard_id | string }}{% endif %}"
|
shard_root_user: "{% if mariadb_loadbalancer == 'haproxy' %}{{ database_user }}{% else %}{{ mariadb_shard_root_user_prefix }}{{ shard_id | string }}{% endif %}"
|
||||||
shard_host: "{{ mariadb_shards_info.shards[shard_id].hosts[0] }}"
|
shard_host: "{{ mariadb_shards_info.shards[shard_id].hosts[0] }}"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating sahara database
|
- name: Creating sahara database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating sahara database user and setting permissions
|
- name: Creating sahara database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Senlin database
|
- name: Creating Senlin database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Senlin database user and setting permissions
|
- name: Creating Senlin database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: "{{ project_name }} | Creating services"
|
- name: "{{ project_name }} | Creating services"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_service"
|
module_name: "os_keystone_service"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
@ -24,6 +25,7 @@
|
|||||||
|
|
||||||
- name: "{{ project_name }} | Creating endpoints"
|
- name: "{{ project_name }} | Creating endpoints"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_endpoint"
|
module_name: "os_keystone_endpoint"
|
||||||
module_args:
|
module_args:
|
||||||
service: "{{ item.0.name }}"
|
service: "{{ item.0.name }}"
|
||||||
@ -50,6 +52,7 @@
|
|||||||
|
|
||||||
- name: "{{ project_name }} | Creating projects"
|
- name: "{{ project_name }} | Creating projects"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_project"
|
module_name: "os_project"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
@ -66,6 +69,7 @@
|
|||||||
|
|
||||||
- name: "{{ project_name }} | Creating users"
|
- name: "{{ project_name }} | Creating users"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_user"
|
module_name: "os_user"
|
||||||
module_args:
|
module_args:
|
||||||
default_project: "{{ item.project }}"
|
default_project: "{{ item.project }}"
|
||||||
@ -88,6 +92,7 @@
|
|||||||
|
|
||||||
- name: "{{ project_name }} | Creating roles"
|
- name: "{{ project_name }} | Creating roles"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_role"
|
module_name: "os_keystone_role"
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
@ -103,6 +108,7 @@
|
|||||||
|
|
||||||
- name: "{{ project_name }} | Granting user roles"
|
- name: "{{ project_name }} | Granting user roles"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_user_role"
|
module_name: "os_user_role"
|
||||||
module_args:
|
module_args:
|
||||||
user: "{{ item.user }}"
|
user: "{{ item.user }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: "{{ project_name }} | Ensure RabbitMQ vhosts exist"
|
- name: "{{ project_name }} | Ensure RabbitMQ vhosts exist"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: rabbitmq_vhost
|
module_name: rabbitmq_vhost
|
||||||
module_args:
|
module_args:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
@ -14,6 +15,7 @@
|
|||||||
|
|
||||||
- name: "{{ project_name }} | Ensure RabbitMQ users exist"
|
- name: "{{ project_name }} | Ensure RabbitMQ users exist"
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: rabbitmq_user
|
module_name: rabbitmq_user
|
||||||
module_args:
|
module_args:
|
||||||
user: "{{ item.user }}"
|
user: "{{ item.user }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Solum database
|
- name: Creating Solum database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Solum database user and setting permissions
|
- name: Creating Solum database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
- name: Creating the ResellerAdmin role
|
- name: Creating the ResellerAdmin role
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_keystone_role"
|
module_name: "os_keystone_role"
|
||||||
module_args:
|
module_args:
|
||||||
name: "ResellerAdmin"
|
name: "ResellerAdmin"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating tacker database
|
- name: Creating tacker database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating tacker database user and setting permissions
|
- name: Creating tacker database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating trove database
|
- name: Creating trove database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating trove database user and setting permissions
|
- name: Creating trove database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating venus database
|
- name: Creating venus database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating venus database user and setting permissions
|
- name: Creating venus database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating vitrage database
|
- name: Creating vitrage database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating vitrage database user and setting permissions
|
- name: Creating vitrage database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
- name: Adding vitrage user into admin project
|
- name: Adding vitrage user into admin project
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: "os_user_role"
|
module_name: "os_user_role"
|
||||||
module_args:
|
module_args:
|
||||||
user: "{{ vitrage_keystone_user }}"
|
user: "{{ vitrage_keystone_user }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Watcher database
|
- name: Creating Watcher database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Watcher database user and setting permissions
|
- name: Creating Watcher database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Creating Zun database
|
- name: Creating Zun database
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_db
|
module_name: mysql_db
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
@ -17,6 +18,7 @@
|
|||||||
- name: Creating Zun database user and setting permissions
|
- name: Creating Zun database user and setting permissions
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
container_engine: "{{ kolla_container_engine }}"
|
||||||
module_name: mysql_user
|
module_name: mysql_user
|
||||||
module_args:
|
module_args:
|
||||||
login_host: "{{ database_address }}"
|
login_host: "{{ database_address }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user