a474ae82d5
This commit consistently defines a heat template parameter in the form of DockerXXXConfigImage where XXX represents the name of the config_volume that is used by docker-puppet. The goal is to mitigate hard to debug errors where the templates would set different defaults for the image docker-puppet.py uses to run, for the same config_volume name. This fixes a couple of inconsistencies on the way. Change-Id: I212020a76622a03521385a6cae4ce73e51ce5b6b Closes-Bug: #1699791
34 lines
741 B
YAML
34 lines
741 B
YAML
heat_template_version: pike
|
|
|
|
parameters:
|
|
DockerNamespace:
|
|
type: string
|
|
default: tripleoupstream
|
|
description: namespace
|
|
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}
|