Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Cleanup pktgen_dpdk unit tests
[yardstick.git]
/
nsb_setup.sh
diff --git
a/nsb_setup.sh
b/nsb_setup.sh
index
4a8e4db
..
1f53449
100755
(executable)
--- a/
nsb_setup.sh
+++ b/
nsb_setup.sh
@@
-63,12
+63,20
@@
for i in "${pkg[@]}"; do
fi
done
fi
done
-pip install ansible==2.
3.2 shade==1.17.0
docker-py==1.10.6
+pip install ansible==2.
5.5 shade==1.22.2
docker-py==1.10.6
ANSIBLE_SCRIPTS="ansible"
ANSIBLE_SCRIPTS="ansible"
+if [[ -n ${1} ]]; then
+ yardstick_docker_image="-e yardstick_docker_image=${1}"
+else
+ yardstick_docker_image=""
+fi
+
+# no quotes for yardstick_docker_image so when empty it is removed as whitespace
cd ${ANSIBLE_SCRIPTS} &&\
ansible-playbook \
-e img_property="nsb" \
cd ${ANSIBLE_SCRIPTS} &&\
ansible-playbook \
-e img_property="nsb" \
+ ${yardstick_docker_image} \
-e YARD_IMG_ARCH='amd64' ${extra_args}\
-e YARD_IMG_ARCH='amd64' ${extra_args}\
- -i
yardstick-
install-inventory.ini nsb_setup.yml
+ -i install-inventory.ini nsb_setup.yml