Something went wrong. Try again.
wip colmena hive
Something went wrong. Try again.
Files
- Nix 100%
readme.md
Butterdog Hive #
Using nixos-anywhere and disko for initial provisioning, and colmena for deployments.
Adding a new node #
- Ensure you have ssh access to the vm. Run the following on the vm:
sudo su
curl https://git.ollie.earth/ollie.keys -o /root/.ssh/authorized_keys
- Copy the template
cp hosts/template -r hosts/<your-vm>
-
Configure your services (under
./hosts/<your-vm>/services/) -
Add your new vm to the known hosts in
flake.nixlike this:
normal_hosts = {
your-vm = {
target = "ip-of-your-vm";
};
};
- Infect the new host with your configuration.
just infect root@ip-of-your-vm your-vm
- Set up sops for the vm (if needed) Run the following to get the age key
just sops-key ip-of-your-vm
and add it to .sops.yaml. Then update the appropriate secrets files.
sops updatekeys ./secrets/services/<your-secret>.yaml
- Build the configuration remotely (optional)
just prepare-deploy
- Deploy the configuration
just deploy