Go to file
Tuan-Dat Tran 3aa56be025 Full k3s server installation done
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-09-20 15:01:33 +02:00
group_vars Full k3s server installation done 2024-09-20 15:01:33 +02:00
host_vars Finished lb and db 2024-09-19 23:10:00 +02:00
roles Full k3s server installation done 2024-09-20 15:01:33 +02:00
scripts Finished lb and db 2024-09-19 23:10:00 +02:00
.gitignore Added bin as pastbin internally and made vars more configurable 2023-04-17 19:23:48 +02:00
README.md Finished lb and db 2024-09-19 23:10:00 +02:00
common-k3s.yml Finished lb and db 2024-09-19 23:10:00 +02:00
db.yml Finished lb and db 2024-09-19 23:10:00 +02:00
k3s-servers.yml Full k3s server installation done 2024-09-20 15:01:33 +02:00
loadbalancer.yml Finished lb and db 2024-09-19 23:10:00 +02:00
production Finished lb and db 2024-09-19 23:10:00 +02:00
secrets.yml.skeleton Finished lb and db 2024-09-19 23:10:00 +02:00
test.yml Full k3s server installation done 2024-09-20 15:01:33 +02:00

README.md

TuDatTr IaC

I do not recommend this project being used for ones own infrastructure, as this project is heavily attuned to my specific host/network setup The Ansible Project to provision fresh Debian VMs for my Proxmox instances. Some values are hard coded such as the public key both in ./scripts/debian_seed.sh and ./group_vars/all/vars.yml.

Prerequisites

Improvable Variables

  • group_vars/k3s/vars.yml:
    • k3s.server.ips: Take list of IPs from host_vars k3s_server*.yml.
    • k3s_db_connection_string: Embed this variable in the k3s.db.-directory. Currently causes loop.

Run Playbook

To run a first playbook and test the setup the following command can be executed.

ansible-playbook -i production -J k3s-servers.yml

This will run the ./k3s-servers.yml playbook and execute its roles.