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
This commit is contained in:
parent
be59ccd8c6
commit
db86a9352b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user