From owner-freebsd-hubs@FreeBSD.ORG Wed Sep 12 13:23:18 2012 Return-Path: Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B4C6106566B; Wed, 12 Sep 2012 13:23:18 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) by mx1.freebsd.org (Postfix) with ESMTP id 1639E8FC08; Wed, 12 Sep 2012 13:23:18 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 5014ABDC66; Wed, 12 Sep 2012 15:23:17 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) by prod2.absolight.net (Postfix) with ESMTPA id 496C9BDC65; Wed, 12 Sep 2012 15:23:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ogg.in.absolight.net (Postfix) with ESMTP id A140541EA303; Wed, 12 Sep 2012 15:23:16 +0200 (CEST) Date: Wed, 12 Sep 2012 15:23:15 +0200 From: Mathieu Arnold To: "Simon L. B. Nielsen" Message-ID: <6D5EF049FD84BF0620E50077@ogg.in.absolight.net> In-Reply-To: References: <021473D8D9E6A7A785543024@ogg.in.absolight.net> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-hubs@freebsd.org Subject: Re: freebsd-update "mirror" howto X-BeenThere: freebsd-hubs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD Distributions Hubs: mail sup ftp" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 13:23:18 -0000 +--On 12 septembre 2012 13:57:34 +0100 "Simon L. B. Nielsen" wrote: | On Wed, Sep 12, 2012 at 12:42 PM, Mathieu Arnold wrote: | |> It's not really a hubs thing, but anyway, I thought I'd share my few |> bits... |> |> For a long time, I pondered about upgrading my 300+ freebsd servers, and |> a few months back freebsd-update seemed like the way to go... | | Very interesting for information like this to be shared. Even better | if somebody could be tricked into putting it in the handbook :-). Hum, I see where you're going with that ;-) The thing is, I wanted a bit of feedback to see if I wasn't doing something stupid before committing myself into doing that. I have not written doc for a long time, I'll try to see if I can coerce myself into doing that next week while I'm vacationing in Corsica. |> Now, I did not want all those servers to hit the main freebsd-update |> servers, so I setup a nice local "mirror" using varnish. | | Why did you decide to go with Varnish instead of a program designed as | a forward cache? Because Varnish is *cool*. :-p |> Varnish's configuration is there https://gist.github.com/2637602 and it |> would be even better if varnish could use SRV records to define it's |> backends by itself, but for now, there are a couple of shell that I have |> to run whenever I feel like it to update the list. | | Evil workaround thing would be to just parse the SRV records in a | script and then generate the varnish config wrt. backend based on | that... not pretty though :-). Well, that's almost already what's there, when I feel the need to update, I edit the file with vim, I remove the old lines, copy the shell line in the script, remove the # and type "V!bash" ;-) -- Mathieu Arnold