diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-09 13:12:38 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-09 13:12:38 +0000 |
commit | 2f5f8fcb2bbd2b9299ac0097a210ba4939d30dc4 (patch) | |
tree | f85d694af17d79e22fb347a594da7fe7ba4c9b2b /docker/deploy-steps-playbook.yaml | |
parent | 2895d8d65adbc17f035425305f28a5ee0938f40d (diff) | |
parent | e77de0d5ff7491d065193f898d1a027b5386312d (diff) |
Merge "Write md5sum for service config directories"
Diffstat (limited to 'docker/deploy-steps-playbook.yaml')
-rw-r--r-- | docker/deploy-steps-playbook.yaml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docker/deploy-steps-playbook.yaml b/docker/deploy-steps-playbook.yaml index a0beaa2c..b3cb500f 100644 --- a/docker/deploy-steps-playbook.yaml +++ b/docker/deploy-steps-playbook.yaml @@ -23,12 +23,15 @@ ################################################## # Per step starting of the containers using paunch ################################################## - - name: Check if /var/lib/tripleo-config/docker-container-startup-config-step_{{step}}.json exists + - name: Check if /var/lib/hashed-tripleo-config/docker-container-startup-config-step_{{step}}.json exists stat: - path: /var/lib/tripleo-config/docker-container-startup-config-step_{{step}}.json + path: /var/lib/tripleo-config/hashed-docker-container-startup-config-step_{{step}}.json register: docker_config_json + # Note docker-puppet.py generates the hashed-*.json file, which is a copy of + # the *step_n.json with a hash of the generated external config added + # This acts as a salt to enable restarting the container if config changes - name: Start containers for step {{step}} - command: paunch --debug apply --file /var/lib/tripleo-config/docker-container-startup-config-step_{{step}}.json --config-id tripleo_step{{step}} --managed-by tripleo-{{role_name}} + command: paunch --debug apply --file /var/lib/tripleo-config/hashed-docker-container-startup-config-step_{{step}}.json --config-id tripleo_step{{step}} --managed-by tripleo-{{role_name}} when: docker_config_json.stat.exists changed_when: false check_mode: no |