X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=hosts-config.yaml;h=c02c4208248d433b4c527ca1a9d22e8935b62196;hb=eabb6d7c304aac8f98c3096725aadace302c8173;hp=df0addfd610fb8bb43ca370cb0f4751e8bbafa65;hpb=9d01feaf7a71ad7823f2b06ddd8259cd222e1c2a;p=apex-tripleo-heat-templates.git diff --git a/hosts-config.yaml b/hosts-config.yaml index df0addfd..c02c4208 100644 --- a/hosts-config.yaml +++ b/hosts-config.yaml @@ -1,21 +1,25 @@ -heat_template_version: 2016-10-14 +heat_template_version: ocata description: 'All Hosts Config' parameters: hosts: - type: comma_delimited_list + type: string resources: hostsConfigImpl: - type: OS::Heat::StructuredConfig + type: OS::Heat::SoftwareConfig properties: - group: os-apply-config - config: - hosts: - list_join: - - "\n" - - {get_param: hosts} + group: script + inputs: + - name: hosts + default: + list_join: + - ' ' + - str_split: + - '\n' + - {get_param: hosts} + config: {get_file: scripts/hosts-config.sh} outputs: config_id: @@ -27,4 +31,7 @@ outputs: 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]} + value: {get_param: hosts} + OS::stack_id: + description: The ID of the hostsConfigImpl resource. + value: {get_resource: hostsConfigImpl}