Fix error during jump_server_clean 39/4839/1
authorTodd Malsbary <todd.malsbary@intel.com>
Mon, 2 May 2022 21:50:32 +0000 (14:50 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Mon, 2 May 2022 21:51:17 +0000 (14:51 -0700)
This fixes a failure in CI runs where ssh to the jump server fails
because host key checking is enabled: the kubespray ansible.cfg
explicitly disables it, so source the ANSIBLE_CONFIG environment
variable before teardown.

Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I4dc8c2465536d32243ca93e639b4282c31677430

deploy/kud/kud_bm_launch.sh

index 6b5aa89..9ba2d40 100755 (executable)
@@ -64,6 +64,8 @@ function kud_install {
 }
 
 function kud_reset {
+    # Pick up the kubespray ANSIBLE_CONFIG from /etc/environment
+    source /etc/environment
     pushd ${KUDPATH}/kud/hosting_providers/vagrant/
     ansible-playbook -i inventory/hosts.ini /opt/kubespray-${KUBESPRAY_VERSION}/reset.yml \
         --become --become-user=root -e reset_confirmation=yes