LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-09-2013, 04:02 AM   #1
henrycoffin
Member
 
Registered: Dec 2006
Distribution: RHEL Debian
Posts: 42

Rep: Reputation: 15
Placing config files under version control


Hi,

I want to place the config files of all my servers under version control using subversion. I have maybe 100 servers and was wondering if anyone else had done this?

What is the best way of structuring the repository? The servers will share some files '/etc/hosts' for instance but other files will differ. Should I configure a repo for each server? or place all config files in one repo and then distribute them with puppet?

Any thoughts/advice would be appreciated

Thanks


Sean
 
Old 07-09-2013, 08:27 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,878
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I'm thinking that these files are all text and further that they're not revised like source or libraries, however you may have scripts which are unique per server. I'd tar/zip up all relevant files on a per server basis and then name the resultant output file "per server", "per date archived", and then add those resultant files to your sccs; I'd probably use one repository reserved for the server configurations to keep it separate from other controlled sources.
 
1 members found this post helpful.
Old 07-09-2013, 08:58 AM   #3
woodysoft
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
I would suggest that there are three main options as I see it:

1) Prefix all files before adding them with the server name for all files that are duplicated
2) Use a different sub-directory for each server
3) Use a different repository


1) Needs you to remember to make a copy before adding, a pain of you forget one day.
2) (I have not tried, so YMMV) If you use a unique named directory on each server, copy the file in, then commit it. May need to get all files when reverting, but not a big issue.
3) is the easiest as you can just place updated files straight in.


Just some suggestions. I would tend to 3), possibly 2) myself, but that is only because I would be likely to forget to get it right, and would add things wrongly
 
Old 07-09-2013, 09:48 AM   #4
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
My take would be : SVN + Puppet
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Version control for Office files r0b0jerk Linux - Software 3 10-27-2007 02:25 AM
KDevelop project - Files to put into version control? skylark Linux - Software 1 10-21-2005 09:01 PM
Using CVS to version control Blender files? mickyg Linux - Software 2 09-19-2005 07:22 AM
script finding files, placing them and naming the TroelsSmit Linux - Newbie 4 11-18-2004 09:50 PM
script finding files, placing them and naming the TroelsSmit Linux - Networking 0 11-18-2004 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration