diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-02-28 10:58:16 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-02-28 10:58:17 +0000 |
commit | 6a8850e10ed892a2dedd1af02425fc3ffc43fc5b (patch) | |
tree | e59f76dfc4b8492409a3e3b74f4acde5de6eca8c /docker/post.j2.yaml | |
parent | bc49d0ccf1644368e4560173f52013d075abd9b1 (diff) | |
parent | 27b61887798fbfb88f293b4778633f969829d3ac (diff) |
Merge "Write out a json file containing container startup info and create tool to use it."
Diffstat (limited to 'docker/post.j2.yaml')
-rw-r--r-- | docker/post.j2.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/post.j2.yaml b/docker/post.j2.yaml index e1154a62..65d0c4ee 100644 --- a/docker/post.j2.yaml +++ b/docker/post.j2.yaml @@ -189,6 +189,24 @@ resources: docker_config: {get_param: [role_data, {{role.name}}, docker_config]} docker_image: {get_param: [role_data, {{role.name}}, docker_image]} + # Here we are dumping all the docker container startup configuration data + # so that we can have access to how they are started outside of heat + # and docker-cmd. This lets us create command line tools to start and + # test these containers. + {{role.name}}DockerConfigJsonStartupData: + type: OS::Heat::StructuredConfig + properties: + group: json-file + config: + /var/lib/docker-container-startup-configs.json: + {get_attr: [{{role.name}}DockerConfig, value]} + + {{role.name}}DockerConfigJsonStartupDataDeployment: + type: OS::Heat::SoftwareDeploymentGroup + properties: + config: {get_resource: {{role.name}}DockerConfigJsonStartupData} + servers: {get_param: [servers, {{role.name}}]} + {{role.name}}KollaJsonConfig: type: OS::Heat::StructuredConfig properties: |