[Labs-l] Help needed with instance proxy
Damian Zaremba
damian at damianzaremba.co.uk
Wed Jan 30 18:33:52 UTC 2013
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.
- Damian
More information about the Labs-l
mailing list