aboutsummaryrefslogtreecommitdiffstats
path: root/docker/firstboot/setup_docker_host.yaml
blob: 4b061e1ce56c22351c794342dbed6ee97e1db241 (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
heat_template_version: pike

parameters:
  DockerNamespace:
    type: string
    default: tripleoupstream
  DockerNamespaceIsRegistry:
    type: boolean
    default: false

resources:

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

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

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