tripleo-heat-templates/docker/firstboot/install_docker_agents.yaml
Jeff Peeler 255f4fd69e Minor fixes to allow local docker registry usage
Changed the heat-docker-agents namespace to use the namespacing
specified in the environment file, which reduces modifications required
on the user when using a local registry.

Changed the start agents script to handle using a local registry both
with a namespace and without.

Change-Id: I16cc96b7ecddeeda07de45f50ffc6a880dabbba6
2016-02-12 15:35:03 -05:00

40 lines
944 B
YAML

heat_template_version: 2014-10-16
parameters:
DockerAgentImage:
type: string
default: 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:
list_join:
- '/'
- [ {get_param: DockerNamespace}, {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}