I spend some of my free time helping out with server administration and
programming for the Swedish Pirate Party, Piratpartiet (look ma,
X-Varnish), and we use Varnish for our caches. At the moment it’s just used on
some of our projects, but we’re going to migrate most of our projects to be
behind our Varnish caches.
The thing is though that we got two hosts running the exact same configuration,
and we’d like to keep those hosts in sync. A quick search on Google gave me
nothing for syncing varnish configuration over several hosts, or a farm as it
were. So I took matters into my own hands and wrote varnishsync, a little bash
script that uses rsync and ssh to sync the configuration folder and then to load
and use the new configuration.
[… more]