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
| | |
| | | # 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: |