[Asterisk-Users] Config Revision Control

Michiel van Baak michiel at vanbaak.info
Mon Jun 5 07:03:07 MST 2006


On 09:41, Mon 05 Jun 06, Andrew Kohlsmith wrote:
> On Saturday 03 June 2006 02:47, Michiel van Baak wrote:
> > I use subversion for this. Every server has its own branch.
> > There's also a branch called 'common'
> > All the server specific branches are svn-copied and svnmerge
> > init from this branche.
> > Then the svn automerge thingie Kevin wrote for the asterisk
> > svn tree is automerging changes to the 'common' tree to all
> > the server trees.
> > In the server trees I make changes specific for one server.
> 
> Can you give some more details?  I am VERY interested in this!

Most is already in my previous mail.

This is my layout:
branches/common
branches/servers/home001
branches/servers/home002
branches/servers/cust001

Like that, you get the idea
The branches/common holds a full config, cept for sip users etc. So
all the [global] and [default] stuff. Also the
extensions.conf has some macro's and contexts I need on
every machine.

The home001 etc hold the conf I actually run on a server.
All the specific sip and iax peers/users are defined in it.
Also the specific stuff for extensions.conf for that server.

If I for example want the congestion in my default outbound
routing macro to play congestion for 5 seconds instead of 10
I only alter extensions.conf in branches/common
The automerge will take care of the promoting it to all the
other branches.

I use this script to do the automerging every hour:
http://svn.digium.com/view/repotools/svn-automerge?rev=54&view=markup
This also means you have to use the modified svnmerge from
the asterisk project:
http://svn.digium.com/view/repotools/svnmerge?rev=63&view=markup

All my servers do auto svn up of the asterisk configs.

I hope this is enough details...
-- 
Michiel van Baak
michiel at vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer afficionados are both called users?"




More information about the asterisk-users mailing list