Hi all,
I must say: ChatGPT (or generative AI in general) is such a game changer for me doing SelfHosting.
Today, I wrote following scripts with GenAI:
- A bash script, that logins in all my LXC container on Proxmox, stops all currently running docker container, exports all persistent docker data to my Proxmox-Host, starts the Container again, and makes a backup via Borg. Afterwards, I get a success notification via Gotify.
- A python script, that uses the Portainer API to export the stack configuration of all my 10 docker environments into easy to backup .yml files ( e.g. backup-host_name-container_name.yml )
- A bash scripts, that checks if the defined containers are running on my docker hosts, and if not, sends a notification to Healthcheck.io
- Different Templates for Obsidian, e.g. Daily / Weekly / Monthly notes with Task-Management etc.
It’s really fun, as I now can find solutions to more complex problems, with just limited program knowledge. Not perfect yet, e.g. it used the Portainer API wrong, and I had to direct it to the right direction via “error messages” and “API documentations”.Sometimes, it also say’s “it’s not possible”, but when you gave some hints (e.g. could you use pct exec instead of ssh) it gives you the right solution .
What are your experiences? Are you using GenAI for your SelfHosting and if yes - where?
My next step will be Ansible, as I had to much respect for it yet, but with some GenAI support I might get everything running …
Nope.
Nope and nope. It’s just too scary that an AI can make in 10s what I would craft manually with all care and love the work deserves, and that includes the bugs I’d introduce, flaws that make my scripts very personal and unique
Not doing it.
People said the same thing when cars were invented and replacing horses for transportation. It’s not about fearing something new, it’s about learning to use it correctly so it benefits you.