summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorThomas Herve <therve@redhat.com>2018-05-09 16:24:03 +0200
committerThomas Herve <therve@redhat.com>2018-05-11 10:43:44 +0200
commit84bb0a0fe670a42a239030258ebd43877e5d5b04 (patch)
tree3f90918ed36be1cb89fb3f376e1dafcdc5e75110 /playbooks
parent0f1e2a0bc153599596602a629ba01f3edf5109fc (diff)
downloadheat-84bb0a0fe670a42a239030258ebd43877e5d5b04.tar.gz
Download octavia image in tests
Instead of rebuilding one. Change-Id: I393158a2fac6d4399a7dde6a0f2e482751359072
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/devstack/functional/run.yaml3
-rw-r--r--playbooks/get_amphora_tarball.yaml6
2 files changed, 9 insertions, 0 deletions
diff --git a/playbooks/devstack/functional/run.yaml b/playbooks/devstack/functional/run.yaml
index c74b858b2..de389aef2 100644
--- a/playbooks/devstack/functional/run.yaml
+++ b/playbooks/devstack/functional/run.yaml
@@ -65,6 +65,9 @@
export PROJECTS="openstack/neutron-lbaas $PROJECTS"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia"
+ export DEVSTACK_LOCAL_CONFIG+=$'\n'"OCTAVIA_AMP_IMAGE_FILE=/tmp/test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2"
+ export DEVSTACK_LOCAL_CONFIG+=$'\n'"OCTAVIA_AMP_IMAGE_SIZE=3"
+ export DEVSTACK_LOCAL_CONFIG+=$'\n'"OCTAVIA_AMP_IMAGE_NAME=test-only-amphora-x64-haproxy-ubuntu-xenial"
# enabling lbaas plugin does not enable the lbaasv2 service, explicitly enable it
services+=,q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api
export PROJECTS="openstack/barbican $PROJECTS"
diff --git a/playbooks/get_amphora_tarball.yaml b/playbooks/get_amphora_tarball.yaml
new file mode 100644
index 000000000..9da0826dc
--- /dev/null
+++ b/playbooks/get_amphora_tarball.yaml
@@ -0,0 +1,6 @@
+- hosts: primary
+ tasks:
+ - name: Download amphora tarball
+ get_url:
+ url: "https://tarballs.openstack.org/octavia/test-images/test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2"
+ dest: /tmp/test-only-amphora-x64-haproxy-ubuntu-xenial.qcow2