Guillaume Coré
2020-01-18 361571ae6b0f2fe98abfcd921151682206b31109
osp-migration: register hostname directly too (#1017)

when hostname = bastion-GUID for example, register:

- bastion-GUID.CLUSTER.osp.opentlc.com
- bastion.GUID.CLUSTER.osp.opentlc.com
- bastion-GUID.GUID.CLUSTER.osp.opentlc.com
1 files modified
2 ■■■ changed files
ansible/configs/osp-migration/instance_loop.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/osp-migration/instance_loop.yml
@@ -4,7 +4,7 @@
# host.GUID.zone.com
# host-GUID.GUID.zone.com
- loop:
    - "{{ _instance.metadata.hostname | regex_replace('-' ~ guid ~ '$', '.' + guid) }}"
    - "{{ _instance.metadata.hostname }}"
    - "{{ _instance.metadata.hostname | regex_replace('-' ~ guid ~ '$', '.' + guid) }}"
    - "{{ _instance.metadata.hostname | regex_replace('-' ~ guid ~ '$', '-' ~ guid ~ '.' + guid) }}"
  loop_control: