6e901b3d6b
There is a limit to how long input data can be for the heat script hook. Change-Id: I48286e300874d7d8311d2ef14f95b6fc87ed579c Closes-Bug: #1772673
39 lines
971 B
YAML
39 lines
971 B
YAML
heat_template_version: rocky
|
|
description: 'All Hosts Config'
|
|
|
|
parameters:
|
|
hosts:
|
|
type: string
|
|
|
|
resources:
|
|
|
|
hostsConfigImpl:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
group: script
|
|
config:
|
|
str_replace:
|
|
params:
|
|
WRITE_HOSTS:
|
|
list_join:
|
|
- ' '
|
|
- str_split:
|
|
- '\n'
|
|
- {get_param: hosts}
|
|
template: {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}
|