diff options
Diffstat (limited to 'hosts-config.yaml')
-rw-r--r-- | hosts-config.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/hosts-config.yaml b/hosts-config.yaml new file mode 100644 index 00000000..5a211716 --- /dev/null +++ b/hosts-config.yaml @@ -0,0 +1,37 @@ +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} |