Merge "Use ansible for hosts entries"
This commit is contained in:
commit
56c197b8c8
@ -203,6 +203,21 @@ parameters:
|
||||
default: {}
|
||||
type: json
|
||||
description: Map of extra data (hieradata) to set on each node.
|
||||
UndercloudHostsEntries:
|
||||
default: []
|
||||
description: >
|
||||
List of undercloud hosts entries to be appended to /etc/hosts. The
|
||||
value is populated with the HEAT_HOSTS entries on the undercloud by
|
||||
tripleoclient when running deploy.
|
||||
type: comma_delimited_list
|
||||
ExtraHostsEntries:
|
||||
default: []
|
||||
description: List of extra hosts entries to be appended to /etc/hosts
|
||||
type: comma_delimited_list
|
||||
VipHostsEntries:
|
||||
default: []
|
||||
description: List of VIP (virtual IP) hosts entries to be appended to /etc/hosts
|
||||
type: comma_delimited_list
|
||||
|
||||
conditions:
|
||||
{% for role in enabled_roles %}
|
||||
@ -371,6 +386,9 @@ outputs:
|
||||
enable_internal_tls: {get_param: EnableInternalTLS}
|
||||
cloud_domain: {get_param: CloudDomain}
|
||||
all_nodes_extra_map_data: {get_param: AllNodesExtraMapData}
|
||||
undercloud_hosts_entries: {get_param: UndercloudHostsEntries}
|
||||
extra_hosts_entries: {get_param: ExtraHostsEntries}
|
||||
vip_hosts_entries: {get_param: VipHostsEntries}
|
||||
common_deploy_steps_tasks: {get_file: deploy-steps-tasks.yaml}
|
||||
deploy_steps_tasks_step_0: {get_file: deploy-steps-tasks-step-0.yaml}
|
||||
common_deploy_steps_tasks_step_1: {get_file: deploy-steps-tasks-step-1.yaml}
|
||||
@ -654,10 +672,15 @@ outputs:
|
||||
environment:
|
||||
artifact_urls: {{ '"{{' }} deploy_artifact_urls {{ '}}"' }}
|
||||
|
||||
- name: HostsConfig
|
||||
script: hosts-config.sh
|
||||
environment:
|
||||
HOSTS_ENTRY: {{ '"{{' }} hosts_entry {{ '}}"' }}
|
||||
- name: Configure Hosts Entries
|
||||
include_role:
|
||||
name: tripleo-hosts-entries
|
||||
vars:
|
||||
tripleo_hosts_entries_undercloud_hosts_entries: {{ '"{{ ' }} undercloud_hosts_entries {{ ' }}"' }}
|
||||
tripleo_hosts_entries_extra_hosts_entries: {{ '"{{ ' }} extra_hosts_entries {{ ' }}"' }}
|
||||
tripleo_hosts_entries_vip_hosts_entries: {{ '"{{ ' }} vip_hosts_entries {{ ' }}"' }}
|
||||
tags:
|
||||
- tripleo_hosts_entries
|
||||
|
||||
tags:
|
||||
- overcloud
|
||||
|
@ -1121,6 +1121,13 @@ resources:
|
||||
- redis: {get_attr: [RedisVirtualIP, ip_address]}
|
||||
- ovn_dbs: {get_attr: [OVNDBsVirtualIP, ip_address]}
|
||||
CloudNames: {get_attr: [CloudNames, value]}
|
||||
UndercloudHostsEntries: {get_param: UndercloudHostsEntries}
|
||||
ExtraHostsEntries: {get_param: ExtraHostFileEntries}
|
||||
VipHostsEntries:
|
||||
if:
|
||||
- add_vips_to_etc_hosts
|
||||
- {get_attr: [VipHosts, value]}
|
||||
- ''
|
||||
|
||||
outputs:
|
||||
ManagedEndpoints:
|
||||
|
@ -589,6 +589,7 @@ resources:
|
||||
{%- endfor %}
|
||||
fqdn_ctlplane: {get_attr: [NetHostMap, value, ctlplane, fqdn]}
|
||||
fqdn_canonical: {get_attr: [NetHostMap, value, canonical, fqdn]}
|
||||
hostname_resolve_network: {get_param: [ServiceNetMap, {{role.name}}HostnameResolveNetwork]}
|
||||
|
||||
outputs:
|
||||
ansible_host_vars_map:
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The ansible tripleo-hosts-entries is now used for adding individual entries
|
||||
to /etc/hosts for each overcloud node. This role is used instead of the
|
||||
output data from the Heat stack.
|
Loading…
x
Reference in New Issue
Block a user