Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Synchronizing config files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ShiroiKuma
n00b
n00b


Joined: 09 Nov 2012
Posts: 40
Location: Japan

PostPosted: Wed Oct 07, 2015 3:02 pm    Post subject: Synchronizing config files Reply with quote

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
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Oct 07, 2015 5:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 547
Location: NRW, Germany

PostPosted: Sun Oct 11, 2015 4:45 pm    Post subject: Reply with quote

Sounds like you're looking for DevOps software such as app-admin/ansible.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum