From db86a9352bec6f982ca10acc2ed6ffb910088d29 Mon Sep 17 00:00:00 2001 From: mciecier Date: Thu, 6 Oct 2022 13:24:13 +0200 Subject: [PATCH] Remove quotation marks from set statements in standalone_config template Quotation marks should be removed in set statements from standalone_config jinja template to make the template compatible with all ansible versions. When quotation marks are used, variable does not return its value, but is passed as regular string value. Change-Id: Ia2d664c89a00f139454a4e7b6322eb3fd383e473 --- roles/standalone/templates/standalone_config.yaml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/standalone/templates/standalone_config.yaml.j2 b/roles/standalone/templates/standalone_config.yaml.j2 index 168eba97e..a2212c1c8 100644 --- a/roles/standalone/templates/standalone_config.yaml.j2 +++ b/roles/standalone/templates/standalone_config.yaml.j2 @@ -7,8 +7,8 @@ resource_registry: OS::TripleO::Services::NovaLibvirt: /usr/share/openstack-tripleo-heat-templates/deployment/deprecated/nova/nova-libvirt-container-puppet.yaml {% endif %} -{% set source_ci_ip_address = "{{ ansible_default_ipv4.address }}/{{ ansible_default_ipv4.netmask }}" %} -{% set source_ci_network = "{{ source_ci_ip_address | ipaddr('network/prefix') }}" %} +{% set source_ci_ip_address = ansible_default_ipv4.address + "/" + ansible_default_ipv4.netmask %} +{% set source_ci_network = source_ci_ip_address | ipaddr('network/prefix') %} {% set ssh_client = (lookup("ansible.builtin.env", "SSH_CLIENT", default='')|split(' '))[0] %} {% set console_access = (ssh_client == '') | ternary(source_ci_network, ssh_client) %} parameter_defaults: