[Asterisk-Users] Config Revision Control
Douglas Garstang
dgarstang at oneeighty.com
Mon Jun 5 09:57:30 MST 2006
> -----Original Message-----
> From: Michiel van Baak [mailto:michiel at vanbaak.info]
> Sent: Monday, June 05, 2006 8:03 AM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] Config Revision Control
>
>
> 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.
Hmmm. What do you do with other files such as AGI scripts, sound files, or music on hold?
Do you maintain separate trees for each of these? If you do, to completely update a system, don't you have to check out etc, agi, sound and moh all independantly?
Ideally it would be good if you could put it _ALL_ under a single tree, and then put Asterisk in a chrooted envionment. Then you could check out and update the configuration all in one go.
While I was playing with svn, it was driving me nuts. It would ALWAYS re-create the current directory, even if I said to check out all files from inside that directory. Means if you went to /etc/asterisk and checked out asterisk, you'd get /etc/asterisk/asterisk. Yuk.
Doug.
More information about the asterisk-users
mailing list