aboutsummaryrefslogtreecommitdiffstats
path: root/hosts-config.yaml
blob: f0d3c6a8401cc353ff2b7a2342182963e4492484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
heat_template_version: pike
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_param: hosts}
  OS::stack_id:
    description: The ID of the hostsConfigImpl resource.
    value: {get_resource: hostsConfigImpl}