[Labs-l] Help needed with instance proxy
Jeremy Baron
jeremy at tuxmachine.com
Wed Jan 30 18:36:47 UTC 2013
On Wed, Jan 30, 2013 at 6:33 PM, Damian Zaremba
<damian at damianzaremba.co.uk> wrote:
> On 30/01/2013 08:19, Liangent wrote:
>> You may also want to set $wgSquidServersNoPurge[] = '10.4.1.15'; for
>> MediaWiki. btw. I guess this IP might change if I delete and recreate that
>> instance. Is there a good way to avoid hard-coding this? -Liangen
>
> You can pull the ip from facter and use this in a template to output that
> file with host specific options.
>
> Something like
> $wgSquidServersNoPurge[] = '<%= ipaddress %>';
>
> might do the trick.
errr, I think that IP's going in a file on a different host than the
one that actually has that IP.
-Jeremy
More information about the Labs-l
mailing list