tripleo-heat-templates/docker/firstboot/install_docker_agents.yaml
Flavio Percoco 89870f1c94 Update heat-agents setup files
This patch moves the image pull step out of the service heat-agent
service script to ease the service init process and to make it more
reliable. By doing this outside of the service script, it's possible to
know when the `firstboot` script failed and report back.

It also updates the firstboot yaml file to point to the
`tripleoupstream` org.

Co-Authored-By: Flavio Percoco <flavio@redhat.com>
Co-Authored-By: Martin André <m.andre@redhat.com>
Change-Id: I2f0b8092ec69320ee370e1d7d20b8c15c95a1d0d
2016-07-29 14:18:37 +02:00

40 lines
950 B
YAML

heat_template_version: 2014-10-16
parameters:
DockerAgentImage:
type: string
default: heat-docker-agents
DockerNamespace:
type: string
default: tripleoupstream
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}