df0addfd610fb8bb43ca370cb0f4751e8bbafa65
[apex-tripleo-heat-templates.git] / hosts-config.yaml
1 heat_template_version: 2016-10-14
2 description: 'All Hosts Config'
3
4 parameters:
5   hosts:
6     type: comma_delimited_list
7
8 resources:
9
10   hostsConfigImpl:
11     type: OS::Heat::StructuredConfig
12     properties:
13       group: os-apply-config
14       config:
15         hosts:
16           list_join:
17           - "\n"
18           - {get_param: hosts}
19
20 outputs:
21   config_id:
22     description: The ID of the hostsConfigImpl resource.
23     value:
24       {get_resource: hostsConfigImpl}
25   hosts_entries:
26     description: |
27       The content that should be appended to your /etc/hosts if you want to get
28       hostname-based access to the deployed nodes (useful for testing without
29       setting up a DNS).
30     value: {get_attr: [hostsConfigImpl, config, hosts]}