Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows to copy the amp image if it's not downloaded #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gating/scripts/test_octavia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
register: lb_active
until: lb_active.stdout == "ACTIVE"
retries: 50
delay: 10
delay: 20
- name: Create a listener
shell: >
openstack loadbalancer listener create --protocol HTTP --protocol-port 80 --name listener test-lb
Expand Down
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
4 changes: 3 additions & 1 deletion 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 All @@ -51,7 +53,7 @@ octavia_num_security_group_rules: 100
# network
setup_network: True
configure_network: True
vlan_id: 111
vlan_id: "{{ lookup('env','VLAN_ID')|default('111') }}"
br_lbaas_prefix: 10.0.252 #first three number blocks


Expand Down