2018-03-05 19:28:35 +01:00
|
|
|
heat_template_version: rocky
|
2016-10-10 21:03:12 -04:00
|
|
|
description: 'All Hosts Config'
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
hosts:
|
2016-11-25 11:20:57 -05:00
|
|
|
type: string
|
2016-10-10 21:03:12 -04:00
|
|
|
|
|
|
|
resources:
|
|
|
|
|
|
|
|
hostsConfigImpl:
|
2016-11-21 08:43:01 -05:00
|
|
|
type: OS::Heat::SoftwareConfig
|
2016-10-10 21:03:12 -04:00
|
|
|
properties:
|
2016-11-21 08:43:01 -05:00
|
|
|
group: script
|
2018-11-07 11:52:36 +01:00
|
|
|
config:
|
|
|
|
str_replace:
|
|
|
|
params:
|
|
|
|
WRITE_HOSTS:
|
|
|
|
list_join:
|
|
|
|
- ' '
|
|
|
|
- str_split:
|
|
|
|
- '\n'
|
|
|
|
- {get_param: hosts}
|
|
|
|
template: {get_file: scripts/hosts-config.sh}
|
2016-10-10 21:03:12 -04:00
|
|
|
|
|
|
|
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).
|
2017-04-17 17:49:45 -04:00
|
|
|
value: {get_param: hosts}
|
2016-11-21 08:43:01 -05:00
|
|
|
OS::stack_id:
|
|
|
|
description: The ID of the hostsConfigImpl resource.
|
|
|
|
value: {get_resource: hostsConfigImpl}
|