View previous topic :: View next topic |
Author |
Message |
ShiroiKuma n00b
Joined: 09 Nov 2012 Posts: 40 Location: Japan
|
Posted: Wed Oct 07, 2015 3:02 pm Post subject: Synchronizing config files |
|
|
I currently run 8 Gentoo systems and was really fed up when I decided to change my zsh/vim settings on one system and wanted to mirror the settings on the others. In the end my solutions was a .sh script hosted on nginx on my gateway, this .sh script basically automated a download of repo from github. Calls a script in the repo that deletes certain files that exist (if they do) and creates symlinks to a centralized folder.
Not very elegant, but it's now one line to set up my environment on any Gentoo system on my network.
It got me thinking, could this be better done via an ebuilds instead?
Maybe I'd like to start shipping a standard php.ini file if php is emerged on that system for example. But then it'd be owned by both php ebuild and my ebuild... that'd cause a conflict I think.
Same goes for syslog, perhaps a standard set of configs based on what is emerged?
Does anyone here do something like this at all? Any advice? |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Oct 07, 2015 5:12 pm Post subject: |
|
|
Quote: | It got me thinking, could this be better done via an ebuilds instead?
|
yes could be, when you create your own overlay and your own ebuild.
Basically just overwrite the config files in the folders / home folders.
Your question made me curious because I have now 3 gentoo boxes and afew linux mint boxes and yes they should be somehow synchronised.
A shell script should be sufficent, but with automation comes the dangerous part to overwrite something which you may wanted to keep and did not considered. |
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Sun Oct 11, 2015 4:45 pm Post subject: |
|
|
Sounds like you're looking for DevOps software such as app-admin/ansible. |
|
Back to top |
|
|
|