Merge "Verify lxc cache file after download"

This commit is contained in:
Jenkins 2015-08-13 17:59:47 +00:00 committed by Gerrit Code Review
commit 4c9d94880f
3 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,7 @@ openstack_upstream_url: "http://{{ openstack_upstream_domain }}"
lxc_container_caches: lxc_container_caches:
- url: "{{ openstack_upstream_url }}/container_images/rpc-trusty-container.tgz" - url: "{{ openstack_upstream_url }}/container_images/rpc-trusty-container.tgz"
name: "trusty.tgz" name: "trusty.tgz"
sha256sum: "56c6a6e132ea7d10be2f3e8104f47136ccf408b30e362133f0dc4a0a9adb4d0c"
## RabbitMQ ## RabbitMQ

View File

@ -68,3 +68,4 @@ lxc_apt_packages:
# lxc_container_caches: # lxc_container_caches:
# - url: "{{ openstack_upstream_url }}/container_images/rpc-trusty-container.tgz" # - url: "{{ openstack_upstream_url }}/container_images/rpc-trusty-container.tgz"
# name: "trusty.tgz" # name: "trusty.tgz"
# sha256sum: "56c6a6e132ea7d10be2f3e8104f47136ccf408b30e362133f0dc4a0a9adb4d0c"

View File

@ -19,7 +19,10 @@
dest: "/var/cache/lxc_{{ item.name }}" dest: "/var/cache/lxc_{{ item.name }}"
mode: "0644" mode: "0644"
force: no force: no
sha256sum: "{{ item.sha256sum }}"
register: cache_download register: cache_download
retries: 3
delay: 10
until: cache_download|success until: cache_download|success
with_items: lxc_container_caches with_items: lxc_container_caches
tags: tags: