5 pushd "${1:-/home/opnfv/functest/images}" > /dev/null
8 cloudify-manager-premium-4.0.1.qcow2 \
9 ubuntu-14.04-server-cloudimg-amd64-disk1.img \
10 ubuntu-16.04-server-cloudimg-amd64-disk1.img"}
14 http_proxy=${http_proxy:-http://proxy:8080}
15 HTTP_PROXY=${http_proxy:-http://proxy:8080}
16 https_proxy=${https_proxy:-${http_proxy:-http://proxy:8080}}
17 HTTPS_PROXY=${https_proxy:-${http_proxy:-http://proxy:8080}}
18 ftp_proxy=${ftp_proxy:-${http_proxy:-http://proxy:8080}}
19 FTP_PROXY=${ftp_proxy:-${http_proxy:-http://proxy:8080}}
20 no_proxy=${no_proxy:-"10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"}
21 NO_PROXY=${no_proxy:-"10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"}
26 for image in $images; do
27 if [ ! -f "$image" ]; then
28 echo "skip ${image} ($(pwd)/${image} not found)"
31 guestmount -a "${image}" -i --rw "${tmpdir}"
32 add_proxy "${tmpdir}/etc/environment"
33 if [[ ${image} == *"cloudify-manager"* ]]; then
34 add_proxy "${tmpdir}/etc/sysconfig/cloudify-mgmtworker"
35 add_proxy "${tmpdir}/etc/sysconfig/cloudify-restservice"
37 guestunmount "${tmpdir}"