Skip to content

Commit

Permalink
Allows to copy the amp image if it's not downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
German Eichberger authored and German Eichberger committed Apr 30, 2018
1 parent 6cbf310 commit 8b13fbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions playbooks/rpc-octavia-install-amp-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
- download_artefact|bool == true
delegate_to: "{{ groups['utility_all'][0] }}"

- name: Copy files to utility
copy:
src: "{{ octavia_amp_src_image_path }}"
dest: "{{ octavia_amp_image_path }}"
when:
- download_artefact|bool == false
delegate_to: "{{ groups['utility_all'][0] }}"

- name: Compute md5
stat:
path: "{{ octavia_amp_image_path }}"
Expand Down
2 changes: 2 additions & 0 deletions playbooks/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ generate_client_cert: True # generate self signed client certs
download_artefact: True
octavia_artefact_url: http://rpc-repo.rackspace.com//images/amphora/r14.3.0/amphora-x64-haproxy.qcow2
octavia_amp_image_path: /root/amphora-x64-haproxy-r14.3.0.qcow2
# copy from here if not downloaded
octavia_amp_src_image_path: "/opt/{{ lookup('env','MK8S_BUNDLER_PATH') }}/mk8s-bundle/amphora/amphora-x64-haproxy-r14.3.0.qcow2"
octavia_amp_artefact_version: r14.3.0

octavia_ca_private_key: "{{ cert_dir }}/private/cakey.pem"
Expand Down

0 comments on commit 8b13fbe

Please sign in to comment.