3c6ec654b4
Heat now supports release name aliases, so we can replace the inconsistent mix of date related versions with one consistent version that aligns with the supported version of heat for this t-h-t branch. This should also help new users who sometimes copy/paste old templates and discover intrinsic functions in the t-h-t docs don't work because their template version is too old. Change-Id: Ib415e7290fea27447460baa280291492df197e54
38 lines
958 B
YAML
38 lines
958 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_attr: [hostsConfigImpl, config, hosts]}
|
|
OS::stack_id:
|
|
description: The ID of the hostsConfigImpl resource.
|
|
value: {get_resource: hostsConfigImpl}
|