first commit
This commit is contained in:
31
k3s/ansible/config/appliances.ini
Normal file
31
k3s/ansible/config/appliances.ini
Normal 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
|
||||
11
k3s/ansible/config/makhiwane.ini
Normal file
11
k3s/ansible/config/makhiwane.ini
Normal 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
|
||||
11
k3s/ansible/config/mbube.ini
Normal file
11
k3s/ansible/config/mbube.ini
Normal 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
|
||||
20
k3s/ansible/config/safe-cluster-startup.yml
Normal file
20
k3s/ansible/config/safe-cluster-startup.yml
Normal 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
|
||||
Reference in New Issue
Block a user