Page MenuHomePhorge

Makefile
No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None

Makefile

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)"; \
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)"; \
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)"; \
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)"; \
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)"; \
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/plain
Expires
Mon, Apr 6, 1:00 AM (3 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18779808
Default Alt Text
Makefile (2 KB)

Event Timeline