From ba8fd1350cf99067ff3077e1e27ad4c8754da925 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 2 Dec 2020 18:07:19 +0200 Subject: [PATCH] Set reasonable default for octavia_ceilometer_enabled By the analogy with other services we define _ceilometer_enabled variable based on the presence of the ceilometer hosts in group. Change-Id: I8389e9245e3f0483b9ddc9127941be32c30bc8a7 --- inventory/group_vars/octavia_all.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inventory/group_vars/octavia_all.yml b/inventory/group_vars/octavia_all.yml index 67f3d72d70..bdd7818b7c 100644 --- a/inventory/group_vars/octavia_all.yml +++ b/inventory/group_vars/octavia_all.yml @@ -13,6 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# If there are any Ceilometer hosts in the environment, then enable its usage +octavia_ceilometer_enabled: "{{ (groups['ceilometer_all'] is defined) and (groups['ceilometer_all'] | length > 0) }}" + octavia_service_internalurl: "{{ octavia_service_internaluri }}/v1/%(project_id)s" octavia_service_user_name: octavia octavia_service_region: "{{ service_region }}"