[Asterisk-Users] Config Revision Control
Michiel van Baak
michiel at vanbaak.info
Fri Jun 2 23:47:27 MST 2006
On 14:42, Fri 02 Jun 06, Douglas Garstang wrote:
> Has anyone got any neat solutions for Asterisk .conf file revision control?
>
> We have multiple Asterisk boxes here, that we'd like to maintain a _mostly_ common set of conf files on. They aren't all the same though. There's subtle differences. For example, in sip.conf, iax.conf etc, the bindaddr setting is different. Dundi.conf is very different between each system.
>
> At the moment I have a file tree on a separate server, and I use the m4 processor to replace certain unique sections of the files. I have a bunch of scripts to build sip.conf etc and then rsync the files out to the servers. It works, mostly, but it isn't elegant.
>
> I'd like to revision control all this. I don't know how it could be done with revision control though. As I said, not all the files are the same. I don't know if we'd run a version control client on each Asterisk box, or if we'd run it centrally, and then use rsync again, to copy the files out.
This is how I do this:
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.
This works like a charm.
Combine this with an auto svn update on the servers to get
the same setup as I have ;)
--
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