diff --git a/ansible/group_vars/all/kolla b/ansible/group_vars/all/kolla index a659cf52d..ca6e198a2 100644 --- a/ansible/group_vars/all/kolla +++ b/ansible/group_vars/all/kolla @@ -182,6 +182,8 @@ overcloud_container_image_regex_map: enabled: "{{ kolla_enable_neutron_lbaas | bool }}" - regex: nova enabled: "{{ kolla_enable_nova | bool }}" + - regex: octavia + enabled: "{{ kolla_enable_octavia | bool }}" - regex: openvswitch enabled: "{{ kolla_enable_neutron | bool }}" - regex: rabbitmq @@ -360,6 +362,7 @@ kolla_enable_neutron: "yes" kolla_enable_neutron_lbaas: "no" kolla_enable_neutron_provider_networks: "no" kolla_enable_nova: "yes" +kolla_enable_octavia: "no" kolla_enable_osprofiler: "no" kolla_enable_prometheus: "no" kolla_enable_sahara: "no" diff --git a/ansible/roles/kolla-openstack/defaults/main.yml b/ansible/roles/kolla-openstack/defaults/main.yml index cc4b1bdf9..9772001f8 100644 --- a/ansible/roles/kolla-openstack/defaults/main.yml +++ b/ansible/roles/kolla-openstack/defaults/main.yml @@ -365,6 +365,12 @@ kolla_enable_nova: # Free form extra configuration to append to nova.conf. kolla_extra_nova: +############################################################################### +# Octavia configuration. + +# Whether to enable Octavia. +kolla_enable_octavia: + ############################################################################### # Sahara configuration. diff --git a/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml b/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml index 858231c27..1fa811fba 100644 --- a/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml +++ b/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml @@ -78,6 +78,7 @@ provisioner: kolla_extra_nova: | [extra-nova.conf] foo=bar + kolla_enable_octavia: true kolla_enable_sahara: true kolla_extra_sahara: | [extra-sahara.conf] diff --git a/ansible/roles/kolla-openstack/molecule/enable-everything/tests/test_default.py b/ansible/roles/kolla-openstack/molecule/enable-everything/tests/test_default.py index ed937ef35..3953530b9 100644 --- a/ansible/roles/kolla-openstack/molecule/enable-everything/tests/test_default.py +++ b/ansible/roles/kolla-openstack/molecule/enable-everything/tests/test_default.py @@ -47,6 +47,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( 'murano', 'neutron', 'nova', + 'octavia', 'sahara', 'storm', 'swift', diff --git a/ansible/roles/kolla-openstack/vars/main.yml b/ansible/roles/kolla-openstack/vars/main.yml index 2b4b4c8fc..7801a5ea6 100644 --- a/ansible/roles/kolla-openstack/vars/main.yml +++ b/ansible/roles/kolla-openstack/vars/main.yml @@ -133,6 +133,11 @@ kolla_openstack_custom_config: dest: "{{ kolla_node_custom_config_path }}/nova" patterns: "*" enabled: "{{ kolla_enable_nova }}" + # Octavia. + - src: "{{ kolla_extra_config_path }}/octavia" + dest: "{{ kolla_node_custom_config_path }}/octavia" + patterns: "*" + enabled: "{{ kolla_enable_octavia }}" # Sahara. - src: "{{ kolla_extra_config_path }}/sahara" dest: "{{ kolla_node_custom_config_path }}/sahara"