Simple Playbook for Quick rancher/k3s installation, use the Glaxy Role PyratLabs/ansible-role-k3s.Using Ansible,packer.io and Vagrant.
For the different Services like nolte/personal-storage-infrastructure or nolte/minecraft-infrastructure, i need a new and a little bit more Flexible Environment like "VirtualMachines".
For Development we need a Lightweight infrastructure, so we split the Installation and Configuration in two Different Parts. First the Basement k3s, on a prepared Host for the preparation we use a commons Playbook like nolte/ansible_playbook-baseline-online-server. This Baseline can be package with packer.io, to a reuseable Vagrant Box.
The Baseline Box will be used for testing different sets of Services, like prometheus or keycloak in a seperated Environment. Usefull for Testing new Tools or Deployment ways.
The Local Vagrant box is a good way for develop new Box versions.
vagrant ssh k3snode
new_ip=$(vagrant ssh -c "ip address show eth0 | grep 'inet ' | sed -e 's/^.*inet //' -e 's/\/.*$//'")
You can create a reuseable Vagrant box with packer.io, this makes it easy to start different Projects with the same basement.
cd local
packer build k3s-node.json
vendir sync