I use puppet to build them out and sanity check that they're still okay, or to apply small changes. I update frequently but with no defined pattern or schedule. (I do not use puppet for updates, to be clear).
This includes desktops, laptops, local headless servers/routers, raspberry pis, vms on vultr and linode, and nspawn containers.
Some of them I treat as a read only image and don't update so much as rebuild. The main exception is my desktop which has lived through all of this and even though I think I have 100% coverage in puppet, it's technically an install from 2009.
From one of your other comments it seems like we have a similar assortment. I highly recommend puppet so that your systems themselves are reproducable easily, only have to worry about data. Chef is also good. I do not like Ansible but I still use it on occasion as a parallel SSH client. I've been meaning to check out puppet-bolt for this.
awwan is command-line interface to execute multiple lines of command in the local or remote server using SSH.
I take my experience on Ansible and write a Unix like philosophy that combine SSH+any command line. Because everyone know basic syntax of shell scripts, why make it harder to learn another syntax? (Anyone who experienced Ansible will know how many lines must to write to copy single file from one machine to another, not including learning the structure, syntax, and variables)
The idea is just really simple: to document all commands and store configurations that I executes on any remote mavhines in my local machine, so I can replay it again another times with the same machine or copy-paste it for another machine.
git for config files (and in some cases like sway config, i include one hostnamed config file by host), and syncthing for data (docs, music, images, ...).
ssh to communicate between them, wayvnc to see one on the other, rsync with non-git projects.
edit: and because i'm a lucky 1gb fiber user, so i don't worry for updates, each one does its updates individualy
Do you make changes to dotfiles just anywhere, and let the computers pull the changes autonomously from your repo? Or do you change them manually for each computer and use git as version control?
All my dotfiles are the same for each host, with sometimes an include by hostname when I have specific behaviors. And all the files are synchronized on the same git branch.
Ex: for bash on host1 and host2 I'll have 3 files :
.bashrc, .bashrc.host1, .bashrc.host2
And on the .bashrc I'll have something like source ~/.bashrc.$(hostname)
I use in my laptop and PC.. almost the same configs.. i use git to manage the configs... i update my laptop through ssh... and file sharing and other stuffs through kdeconnect.
I usually have a work and home machine. I keep the configurations that I want to replicate in source control. As far as package management... I'd like for it to not be some large list that keeps growsing so I basically only install dependencies as I need them. I also find that drivers and X11 configurations usually differ enough for me to not want to save all of my configurations. https://github.com/rokadias/dotfiles
I had an ansible configuration to install and pacman is pretty good to update until it breaks again. Not using arch anymore, Manjaro on my play-notebook to check out new releases.
41 comments
Depends on how many you're talking about I think?
2 or 3 at home for different purposes? SSH for sure.
9 or 10 homogeneous ones? Terminator or ClusterSSH may help.
100 production machines? Perhaps time for Ansible to shine?
15 different systems; laptops, a rpi, headless server, nspawn containers
Getting into ansible territory.
I update my desktop on Monday morning and my laptop the first time during the week I boot up as I use it less.
You actually answered my question ๐
Yeah don't update on Friday ๐คฃ
I use puppet to build them out and sanity check that they're still okay, or to apply small changes. I update frequently but with no defined pattern or schedule. (I do not use puppet for updates, to be clear).
This includes desktops, laptops, local headless servers/routers, raspberry pis, vms on vultr and linode, and nspawn containers.
Some of them I treat as a read only image and don't update so much as rebuild. The main exception is my desktop which has lived through all of this and even though I think I have 100% coverage in puppet, it's technically an install from 2009.
Puppet. Iโve never heard of it. Thank you!
From one of your other comments it seems like we have a similar assortment. I highly recommend puppet so that your systems themselves are reproducable easily, only have to worry about data. Chef is also good. I do not like Ansible but I still use it on occasion as a parallel SSH client. I've been meaning to check out puppet-bolt for this.
I have my installation and configuration scritps in a private git repo.
When I have a new installation I pull the repo, run my installation script, and import my configuration stuff.
If your configuration changes often, then perhaps ansible is a better fit.
Keeping setups as similar as possible seems like a good way to keep things under control. Thanks
My I introduce you to awwan?
https://sr.ht/~shulhan/awwan/
awwan is command-line interface to execute multiple lines of command in the local or remote server using SSH.
I take my experience on Ansible and write a Unix like philosophy that combine SSH+any command line. Because everyone know basic syntax of shell scripts, why make it harder to learn another syntax? (Anyone who experienced Ansible will know how many lines must to write to copy single file from one machine to another, not including learning the structure, syntax, and variables)
The idea is just really simple: to document all commands and store configurations that I executes on any remote mavhines in my local machine, so I can replay it again another times with the same machine or copy-paste it for another machine.
I like it. Bookmarked for later use.
Someone else here said the problem with automation is error/exception handling. What do you think of it? What if a command doesn't exit properly?
Basically it will just print the same stderr that the command print in the remote.
What the awwan can help here is it can replay that command at specific line until the end of script again without starting from beginning.
In the end, it still need human operator, it is not an automation tools, but more like bookkeeping tools.
git for config files (and in some cases like sway config, i include one hostnamed config file by host), and syncthing for data (docs, music, images, ...).
ssh to communicate between them, wayvnc to see one on the other, rsync with non-git projects.
edit: and because i'm a lucky 1gb fiber user, so i don't worry for updates, each one does its updates individualy
Do you make changes to dotfiles just anywhere, and let the computers pull the changes autonomously from your repo? Or do you change them manually for each computer and use git as version control?
All my dotfiles are the same for each host, with sometimes an include by hostname when I have specific behaviors. And all the files are synchronized on the same git branch.
Ex: for bash on host1 and host2 I'll have 3 files :
.bashrc,.bashrc.host1,.bashrc.host2And on the .bashrc I'll have something like
source ~/.bashrc.$(hostname)I use in my laptop and PC.. almost the same configs.. i use git to manage the configs... i update my laptop through ssh... and file sharing and other stuffs through kdeconnect.
โ
Edit: My laptop is mounted as NFS in my PC.
I used to have a desktop and a laptop and kept my dotfiles in sync by using homesick/git to track them. This made both system behave the same.
Deleted before we saved it.
Do you ssh and then do everything manually on each computer?
Deleted before we saved it.
I usually have a work and home machine. I keep the configurations that I want to replicate in source control. As far as package management... I'd like for it to not be some large list that keeps growsing so I basically only install dependencies as I need them. I also find that drivers and X11 configurations usually differ enough for me to not want to save all of my configurations.
https://github.com/rokadias/dotfiles
If I wanted to do package syncing then I'd run something like: https://superuser.com/a/1061674/596792
4 systems, 2 thinkpads, 1 desktop for games and 1 ssh/minecraft server. Update every once in a while, not much though
I had an ansible configuration to install and pacman is pretty good to update until it breaks again. Not using arch anymore, Manjaro on my play-notebook to check out new releases.
they are all equally broken, just in different places