Fix gate
* install latest version of pip * change ansible user from root to current user * enable voting for gate deployment Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com> Change-Id: If47a4b1dd321f84d28d128e323b2c48cbeafe609
This commit is contained in:
parent
cbfdd0cdee
commit
c7172951d8
@ -19,3 +19,7 @@
|
|||||||
environment:
|
environment:
|
||||||
remote_work_dir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
|
remote_work_dir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
|
||||||
zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
|
zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
|
||||||
|
|
||||||
|
- name: Reset ssh connection for docker group to reload
|
||||||
|
meta: reset_connection
|
||||||
|
ignore_errors: true
|
||||||
|
@ -33,7 +33,10 @@ pkg_check() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_check curl wget python3-pip python3-setuptools ca-certificates make
|
pkg_check curl wget ca-certificates make
|
||||||
|
|
||||||
|
echo "Installing pip and dependencies"
|
||||||
|
curl -s https://bootstrap.pypa.io/get-pip.py | python3
|
||||||
|
|
||||||
echo "Installing Kind Version $KIND_VERSION"
|
echo "Installing Kind Version $KIND_VERSION"
|
||||||
sudo wget -O /usr/local/bin/kind ${KIND_URL}
|
sudo wget -O /usr/local/bin/kind ${KIND_URL}
|
||||||
@ -51,9 +54,9 @@ envsubst <"${HCO_WS}/tools/deployment/config_template.yaml" > "$PLAYBOOK_CONFIG"
|
|||||||
|
|
||||||
PACKAGES="ansible netaddr"
|
PACKAGES="ansible netaddr"
|
||||||
if [[ -z "${http_proxy}" ]]; then
|
if [[ -z "${http_proxy}" ]]; then
|
||||||
sudo pip3 install $PACKAGES
|
sudo python3 -m pip install $PACKAGES
|
||||||
else
|
else
|
||||||
sudo pip3 --proxy "${http_proxy}" install $PACKAGES
|
sudo python3 -m pip --proxy "${http_proxy}" install $PACKAGES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "primary ansible_host=localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3" > "$ANSIBLE_HOSTS"
|
echo "primary ansible_host=localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3" > "$ANSIBLE_HOSTS"
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
local_src_dir: "$HCO_WS"
|
local_src_dir: "$HCO_WS"
|
||||||
ansible_user: root
|
ansible_user: "$USER"
|
||||||
proxy:
|
proxy:
|
||||||
enabled: "$USE_PROXY"
|
enabled: "$USE_PROXY"
|
||||||
http: "$HTTP_PROXY"
|
http: "$HTTP_PROXY"
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
- ./tools/deployment/51_test_hostconfig_cr_reconcile.sh
|
- ./tools/deployment/51_test_hostconfig_cr_reconcile.sh
|
||||||
- ./tools/deployment/52_test_hostconfig_cr_failure.sh
|
- ./tools/deployment/52_test_hostconfig_cr_failure.sh
|
||||||
- ./tools/deployment/53_test_packges.sh
|
- ./tools/deployment/53_test_packges.sh
|
||||||
voting: false
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-hostconfig-operator-build-image
|
name: airship-hostconfig-operator-build-image
|
||||||
|
Loading…
x
Reference in New Issue
Block a user