Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117883316
Makefile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
Makefile
View Options
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
Details
Attached
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)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline