tripleo-heat-templates/puppet
Harald Jensås aeb783fdcf Fix HostnameMap lookup - replace str_replace with yaql
Using str_replace when looking up hostnames in
HostnameMap may return unpredictable results.
For example if the map contain:

HostnameMap:
  overcloud-compute-12: cmp-12-london
  overcloud-compute-123: cmp-123-berlin

When we do string replace for a hostname that is
not in the map (example: 'overcloud-compute-124')
it will match on the substring. The result would
be 'cmp-12-london4'.

This change replaces the str_replace with a yaql
expression that will return the value of they key
matching the hostname provided. If the key is not
in the map, the hostname is returned.

Closes-Bug: #1781560
Change-Id: Ia3a6a3539cd566131cd81b4d755190aa5b61a573
2018-07-19 07:24:29 +00:00
..
extraconfig Match only haproxy for docker ps and skipp all *-haproxy occurences 2018-06-11 10:50:39 +02:00
manifests Reinstate common overcloud manifest for all roles 2018-01-11 18:42:45 +00:00
services Merge "Generate and mount wrappers for haproxy in OVN metadata agent" 2018-07-13 06:09:13 +00:00
all-nodes-config.j2.yaml Revert "Only add internal_api_virtual_ip if InternalApi is in network_data" 2018-06-04 20:26:31 +00:00
deploy-artifacts.sh Merge "Fix rpms being installed via DeployArtifactURLs" 2017-06-23 17:05:14 +00:00
deploy-artifacts.yaml Change template names to rocky 2018-05-09 08:28:42 +02:00
role.role.j2.yaml Fix HostnameMap lookup - replace str_replace with yaql 2018-07-19 07:24:29 +00:00