3aa56be025a4ca589bfae3df09290dfb127b0685
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
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
- secrets.yml in the root directory of this repository. Skeleton file can be found as ./secrets.yml.skeleton.
- IP Configuration of hosts like in ./host_vars/*
- Setup ~/.ssh/config for the respective hosts used.
- Install
passlibfor your operating system. Needed to hash passwords ad-hoc.
Improvable Variables
group_vars/k3s/vars.yml:k3s.server.ips: Take list of IPs from host_varsk3s_server*.yml.k3s_db_connection_string: Embed this variable in thek3s.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.
Description
Languages
Jinja
78.8%
Shell
21.2%