Post 9osZAlJM6tWPDV5JQ0 by sirmacik@mastodon.technology
 (DIR) More posts by sirmacik@mastodon.technology
 (DIR) Post #9oplu0j4T1SX56ilyS by sir@cmpwn.com
       2019-11-10T22:51:18Z
       
       0 likes, 1 repeats
       
       Has anyone put /etc under version control and what was your experience
       
 (DIR) Post #9oplu13dEZuE6sLC1Q by sheogorath@microblog.shivering-isles.com
       2019-11-10T23:23:36Z
       
       0 likes, 0 repeats
       
       @sir Pretty much everyone who ever installed etckeeper?
       
 (DIR) Post #9oplzNpI0ZIQApBwOm by TopRound@mastodon.top
       2019-11-10T22:57:37Z
       
       0 likes, 0 repeats
       
       @sir I didn't do all of /etc but I made symlinks to some /etc config files in my dotfiles git repo stored in my /home
       
 (DIR) Post #9opm8kjMDglrofsuJc by keur@mastodon.ocf.berkeley.edu
       2019-11-10T23:25:53Z
       
       0 likes, 0 repeats
       
       @sir cc @dkessler. You can talk about the motivation for https://github.com/ocf/etc
       
 (DIR) Post #9opmB52TgVczNfwD6u by kick@blob.cat
       2019-11-10T22:52:46.474198Z
       
       0 likes, 0 repeats
       
       @sir That sounds insane but I kind of dig it.Making a mental note to look into doing that.
       
 (DIR) Post #9opmBCl2zCRFJvqP3I by sir@cmpwn.com
       2019-11-10T22:52:57Z
       
       0 likes, 0 repeats
       
       @kick I do this with $HOME
       
 (DIR) Post #9opmBLgPnn550AkKa8 by kick@blob.cat
       2019-11-10T22:54:02.497558Z
       
       0 likes, 0 repeats
       
       @sir Don't you have images in your home directory? git doesn't handle those sanely, does it?
       
 (DIR) Post #9opmBTew9AeTju7GO8 by sir@cmpwn.com
       2019-11-10T23:00:42Z
       
       1 likes, 0 repeats
       
       @kick I have * in .gitignore, and I git add -f any files that I want to track
       
 (DIR) Post #9opmBaWKdYvb1F8zRo by kick@blob.cat
       2019-11-10T23:02:36.409667Z
       
       0 likes, 0 repeats
       
       @sir Good thinking!
       
 (DIR) Post #9opmFwzP2Ybxrap1FI by doenietzomoeilijk@mastodon.nl
       2019-11-10T22:57:27Z
       
       0 likes, 0 repeats
       
       @sir I did, but half-heartedly. I should really sort out my server configuration one day...
       
 (DIR) Post #9opmI2wNstRMtsPRac by amiloradovsky@functional.cafe
       2019-11-10T22:59:20Z
       
       0 likes, 0 repeats
       
       @sir I did, but not by doing ~got init~ right in /etc. Instead, I've assembled a directory of the files worth version controlling by hard-linking them.Couldn't use symbolic links, because Git recognizes them as such, while hard links seem to do the trick.
       
 (DIR) Post #9opnBIcJIn3JRjMmwq by martijnbraam@fosstodon.org
       2019-11-10T22:53:15Z
       
       0 likes, 0 repeats
       
       @sir I run etckeeper on my servers, which automatically puts /etc in git, it's very nice when upgrades go wrong or I messed with a config file when I didn't make a backup
       
 (DIR) Post #9oqET7xiLul6NN6Ubo by kotajacob@mastodon.technology
       2019-11-11T04:43:30Z
       
       0 likes, 0 repeats
       
       @sir Yes, but not exactly directly. I have a repo full of my configs + a makefile. I edit the configs in the repo and use the makefile to "push" the new changes to the actual /etc/ directory. I tried etckeeper in the past, but I like the manual approach more now.
       
 (DIR) Post #9oqGuAQtTU1ZlWm18i by sa0bse@chaos.social
       2019-11-11T05:11:01Z
       
       0 likes, 0 repeats
       
       @sir used to do that with etckeeper. Just make sure to chmod /etc/.git so it's not world readable.But I don't do this anymore because I run NixOS instead.
       
 (DIR) Post #9oqWtfhNLGOBiCGgvA by amdg2@diaspodon.fr
       2019-11-11T08:10:12Z
       
       0 likes, 0 repeats
       
       @sir I am doing this with etckeeper. It gives peace of mind. I can start a new ArchLinux box from scratch and just reinstall my packages, pull my /etc from git remote and everything is ready.
       
 (DIR) Post #9oqXlhdeLTv7MkI1D6 by ptman@social.librem.one
       2019-11-11T08:19:51Z
       
       0 likes, 0 repeats
       
       @sir I used to use etckeeper, and still do in some cases. But I'm using nixos and ansible more these days. Obviously I then have those configs in version control.
       
 (DIR) Post #9oqXzsEBlsqAGK8b3o by valhalla@social.gl-como.it
       2019-11-11T08:18:58Z
       
       0 likes, 0 repeats
       
       @sir I always install etckeeper and most of the time just leave it there to take care of itself.Zero effort, and it provides a nice safety net that I've used a number of times.(my home is a mix of vcsh-managed git repos for dotfiles, regular git repositories and git-annex ones, all managed through mr.)
       
 (DIR) Post #9oqnhfa1eh4n5dh2kS by woffs@mastodon.sdf.org
       2019-11-11T11:18:20Z
       
       1 likes, 0 repeats
       
       @sir using NixOS. I'm fine.
       
 (DIR) Post #9oqtZyZHm2HhOA3sxM by lvmbdv@mastodon.technology
       2019-11-11T12:24:22Z
       
       0 likes, 0 repeats
       
       @sir etckeeper does this for you
       
 (DIR) Post #9osZAlJM6tWPDV5JQ0 by sirmacik@mastodon.technology
       2019-11-12T07:45:05Z
       
       0 likes, 0 repeats
       
       @sir etckeeper by @joeyh is a solution I'm using on my private and production servers. Part of a work to be able to tell what changed at 14:30, a year ago. Since most of the machines have multiple admins with varying documentation skills.
       
 (DIR) Post #9otlhVB6VTtBLSYxma by dumol@mastodon.sdf.org
       2019-11-12T21:38:49Z
       
       0 likes, 0 repeats
       
       @sir Long time ago, when CVS was king. For servers it's better to deploy/rollback through Salt, Ansible, etc. and keep that config under version control.