aboutsummaryrefslogtreecommitdiffstats
path: root/docker/firstboot/install_docker_agents.yaml
blob: 348c1755d8e44adb05b55ea74d45fd1a1e4384ce (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
heat_template_version: 2014-10-16

parameters:
  DockerAgentImage:
    type: string
    default: tripleoupstream/heat-docker-agents
  DockerNamespace:
    type: string
    default: kollaglue
  DockerNamespaceIsRegistry:
    type: boolean
    default: false

resources:

  userdata:
    type: OS::Heat::MultipartMime
    properties:
      parts:
      - config: {get_resource: install_docker_agents}

  install_docker_agents:
    type: OS::Heat::SoftwareConfig
    properties:
      group: script
      config:
        str_replace:
          params:
            $agent_image: {get_param: DockerAgentImage}
            $docker_registry: {get_param: DockerNamespace}
            $docker_namespace_is_registry: {get_param: DockerNamespaceIsRegistry}
          template: {get_file: ./start_docker_agents.sh}

outputs:
  OS::stack_id:
    value: {get_resource: userdata}