Repo for all of my homelab configurations
The whole homelab will be setup using TailScale.
The first time you run the Playbook against ProxMox, you may run into ssh not working for the nodes.
Do the following:
- ssh login to the node as
root sudo adduser stephenfroeber- Fill in the same password as the Web UI
ssh-copy-id -i ~/.ssh/coachlight-homelab.pub stephenfroeber@<node name>.rohu-shark.ts.net
To get Synology setup on TailScale with https:
- Install Tailscale from the Package Manager in the GUI
ssh stephenfroeber@srfaudio.rohu-shark.ts.nettailscale cert srfaudio.rohu-shark.ts.netsudo cp ~/srfaudio.rohu-shark.ts.net.crt /usr/syno/etc/certificate/system/default/cert.pemsudo cp ~/srfaudio.rohu-shark.ts.net.key /usr/syno/etc/certificate/system/default/privkey.pem- Reboot Synology
To get Tailscale to always run in HAOS:
curl -fsSL https://tailscale.com/install.sh | sh(It will fail onrc-update)sudo tailscaled &sudo nano /usr/local/bin/start-tailscale.shand paste the following:
#!/bin/sh
/usr/sbin/tailscaled &
sleep 5
/usr/sbin/tailscale up --authkey <YOUR_AUTH_KEY>
sudo chmod +x /usr/local/bin/start-tailscale.shsudo crontab -eand add@reboot /usr/local/bin/start-tailscale.shtailscale up
All files ending in .tpl must be run through the op inject command first before they can be used.
Example:
op inject -i debian-docker-host-preseed.cfg.tpl -o debian-docker-host-preseed.cfg
NOTES:
- Don't install Tailscale into the template. It produces duplicate hostname keys in Tailscale. Stop when the VM's have been created.
- Disable firewall in Fedora for Tailscale:
sudo firewall-cmd --permanent --zone=trusted --add-interface=tailscale0
sudo firewall-cmd --reload
- Rename k8s cluster
- permanently add kubeconfg