first commit

This commit is contained in:
Khwezi Mngoma
2026-02-22 16:43:17 +02:00
commit 0410dc3950
94 changed files with 9739 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
[all:vars]
ansible_python_interpreter=/usr/bin/python3
ansible_user=ansible
ansible_ssh_private_key_file=~/.ssh/id_ed25519
[shared]
sentry ansible_host=sentry.mngoma.lab
alpha ansible_host=alpha.lb.mngoma.lab
database ansible_host=database.mngoma.lab
vpn ansible_host=vpn.mngoma.lab
minecraft ansible_host=minecraft.mngoma.lab
#khongisa ansible_host=khongisa.mngoma.lab
#beta ansible_host=beta.lb.mngoma.lab
#dns ansible_host=dns.mngoma.lab
#storage ansible_host=storage.mngoma.lab
manager ansible_host=lead.mngoma.lab
worker ansible_host=worker1.mngoma.lab
#manager2 ansible_host=follow.mngoma.lab
#worker2 ansible_host=worker2.mngoma.lab
[makhiwanecluster]
manager ansible_host=lead.mngoma.lab
worker ansible_host=worker1.mngoma.lab
[mbubecluster]
#manager2 ansible_host=follow.mngoma.lab
#worker2 ansible_host=worker2.mngoma.lab
[loadbalancers]
alpha ansible_host=alpha.lb.mngoma.lab
#beta ansible_host=beta.lb.mngoma.lab

View File

@@ -0,0 +1,11 @@
[all:vars]
ansible_python_interpreter=/usr/bin/python3
ansible_user=ansible
ansible_ssh_private_key_file=~/.ssh/id_ed25519
[cluster]
manager ansible_host=lead.mngoma.lab
worker ansible_host=worker1.mngoma.lab
[workers]
worker ansible_host=worker1.mngoma.lab

View File

@@ -0,0 +1,11 @@
[all:vars]
ansible_python_interpreter=/usr/bin/python3
ansible_user=ansible
ansible_ssh_private_key_file=~/.ssh/id_ed25519
[cluster]
manager ansible_host=follow.mngoma.lab
worker ansible_host=worker2.mngoma.lab
[workers]
worker ansible_host=worker2.mngoma.lab

View File

@@ -0,0 +1,20 @@
---
- name: Ensure manager node is running k3s / start if needed
hosts: manager
become: true
tasks:
- name: Start k3s service on manager
systemd:
name: k3s
state: started
enabled: true
- name: Ensure worker nodes are running k3s-agent / start if needed
hosts: workers
become: true
tasks:
- name: Start k3s-agent service on worker nodes
systemd:
name: k3s-agent
state: started
enabled: true