Skip to content

41 comments

unknown author2 hidden

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?

11 points

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.

5 points

Puppet. Iโ€™ve never heard of it. Thank you!

2 points

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.

2 points
unknown author1 hidden

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.

5 points

Keeping setups as similar as possible seems like a good way to keep things under control. Thanks

1 points

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.

2 points

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?

1 points

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.

2 points

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

2 points

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?

1 points

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)

1 points

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.

2 points

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.

2 points

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

1 points

4 systems, 2 thinkpads, 1 desktop for games and 1 ssh/minecraft server. Update every once in a while, not much though

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.