Hi,
On 7/15/05, Stephen Shirley <diamond at skynet.ie> wrote:
> A few years ago, i got tired of trying to keep my normal configs (bash,
> vim, cvs, screen) in sync on all the machines i had shell accounts on,
> so i decided to script it. So i defined one set of configs to be the
> master set, and wrote a script on that machine to copy the configs to a
> list of other machines/accounts.
Subversion is fantastically brilliant for this task.
For example, I've got a service running on 4 servers in three
locations. One of them is nominated the "test" server, where new
configs can be tried out. When I'm happy editing
/etc/appname/config.file, I just do a "svn ci
/etc/appname/config.file" and move onto my next task. A cronjob on all
servers does svn update's and restarts services as required.
This methodology can easily be applied to .bash_profile, .vimrc etc.
There's no reason why you couldn't use CVS or arch for this task,
however I really like svn's model and commands.
> That was fine, except it took ages.
> Anytime a machine wasn't reachable (due to it being off, or the ssh
> tunnel being down, mostly), everything just hung waiting for the
> connection attempt to time out.
"Pull" is better than "Push":
http://www.infrastructures.org/bootstrap/pushpull.shtml
Brian.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!