tripleo-heat-templates/hosts-config.yaml
James Slagle ee9d6339cc Add all hosts to HostsEntry output
Previously only the VIPs and their associated hostnames were present in
the HostsEntry output, due to the hosts_entries output on the
hosts-config.yaml nested stack being empty. It was referencing an
invalid attribute.

Change-Id: Iec41926e27bdbf86eb30f230f904df1b7dbfa9c2
Closes-Bug: #1683517
2017-04-17 17:52:52 -04:00

38 lines
932 B
YAML

heat_template_version: ocata
description: 'All Hosts Config'
parameters:
hosts:
type: string
resources:
hostsConfigImpl:
type: OS::Heat::SoftwareConfig
properties:
group: script
inputs:
- name: hosts
default:
list_join:
- ' '
- str_split:
- '\n'
- {get_param: hosts}
config: {get_file: scripts/hosts-config.sh}
outputs:
config_id:
description: The ID of the hostsConfigImpl resource.
value:
{get_resource: hostsConfigImpl}
hosts_entries:
description: |
The content that should be appended to your /etc/hosts if you want to get
hostname-based access to the deployed nodes (useful for testing without
setting up a DNS).
value: {get_param: hosts}
OS::stack_id:
description: The ID of the hostsConfigImpl resource.
value: {get_resource: hostsConfigImpl}