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
Adds an environment variable for the vlan.
  • Loading branch information
German Eichberger authored and German Eichberger committed Apr 30, 2018
1 parent 6cbf310 commit c846412
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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

0 comments on commit c846412

Please sign in to comment.