Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
diff --git a/examples/k3s-replicated/Makefile b/examples/k3s-replicated/Makefile
index e5e60c6..5c2b5f5 100644
--- a/examples/k3s-replicated/Makefile
+++ b/examples/k3s-replicated/Makefile
@@ -1,57 +1,57 @@
SHELL=/bin/bash
PWD=$(shell pwd)
KOLABCTL=../../kolabctl
IMAGE="${PWD}/../../build/packer/artifacts/qemu/kolab-minimal-0.1/kolab-minimal-0.1.qcow2"
SSHKEY=../../build/packer/kolab-default-key
DEPLOYMENT=../../deployments/k3s-replicated/
connect-infra1:
- until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "kolab@$$(sudo virsh domifaddr infra1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
+ until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr infra1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-infra2:
- until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "kolab@$$(sudo virsh domifaddr infra2 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
+ until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr infra2 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-worker1:
- until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "kolab@$$(sudo virsh domifaddr worker1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
+ until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr worker1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-worker2:
- until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "kolab@$$(sudo virsh domifaddr worker2 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
+ until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr worker2 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
connect-test1:
- until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "kolab@$$(sudo virsh domifaddr test1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
+ until ssh -i ${SSHKEY} -o StrictHostKeyChecking=no "root@$$(sudo virsh domifaddr test1 --source agent | grep eth0 | grep ipv4 | head -1 | tr -s ' ' | cut -d ' ' -f5 | cut -d\/ -f1)"; \
do sleep 2; \
done
ansible:
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v --private-key=${SSHKEY} -i inventory.yaml -D ${DEPLOYMENT}/ansible/playbook.yaml
ansible-testnode:
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v --private-key=${SSHKEY} -i inventory.yaml -D ${DEPLOYMENT}/ansible/setup-testnode.yaml
recreate:
rm -f values.yaml
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v -e "recreate_vm=true" --private-key=${SSHKEY} -i inventory.yaml -D ${DEPLOYMENT}/ansible/playbook.yaml
deploy:
env KUBECONFIG=./kubeconfig.yaml CHART_URL=../../kolab ${KOLABCTL} deploy
apply:
env KUBECONFIG=./kubeconfig.yaml CHART_URL=../../kolab ${KOLABCTL} apply
# Build local images
build-images:
pushd ../../ ; \
build/build.sh ;
# Push images to the local registry
push-images:
env ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v --private-key=${SSHKEY} -i inventory.yaml -D ${DEPLOYMENT}/ansible/push-local-images.yaml

File Metadata

Mime Type
text/x-diff
Expires
Sat, Apr 4, 6:49 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822914
Default Alt Text
(3 KB)

Event Timeline