Skip to content

Commit

Permalink
Tweak path to fetch SNO kubeconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 committed Dec 23, 2024
1 parent d63a6e1 commit 355c40d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,12 @@ ssh ${SSH_ARGS} root@${bastion} "
ansible-playbook -i ansible/inventory/$LAB_CLOUD.local ansible/setup-bastion.yml | tee /tmp/ansible-setup-bastion-$(date +%s)
ansible-playbook -i ansible/inventory/$LAB_CLOUD.local ansible/${TYPE}-deploy.yml -v | tee /tmp/ansible-${TYPE}-deploy-$(date +%s)
mkdir -p /root/$LAB/$LAB_CLOUD/$TYPE
ansible -i ansible/inventory/$LAB_CLOUD.local bastion -m fetch -a 'src=/root/${TYPE}/kubeconfig dest=/root/$LAB/$LAB_CLOUD/$TYPE/kubeconfig flat=true'
if [[ ${TYPE} == 'sno' ]]; then
KUBECONFIG_SRC='/root/sno/{{ groups.sno[0] }}'
else
KUBECONFIG_SRC=/root/${TYPE}/kubeconfig
fi
ansible -i ansible/inventory/$LAB_CLOUD.local bastion -m fetch -a 'src=${KUBECONFIG_SRC} dest=/root/$LAB/$LAB_CLOUD/$TYPE/kubeconfig flat=true'
deactivate
rm -rf .ansible
"
Expand Down

0 comments on commit 355c40d

Please sign in to comment.