Don't get me wrong - I am using DNS. I have 3 entries I want in each host
file. The primary production DB server (I don't want to run caching DNS
everywhere, and I connect to it a lot. It's also a failsafe if there are
DNS issues) - the management box with puppet, and localhost.
Jason
--
Hey,
I'm pretty new to Puppet, but if you cut and paste from your existing
configuration, perhaps this could be your problem:
Jason Slagle wrote:
> $myhosts = [$hostname, $extrahosts]
> $myhost = $hostname
You have $myhosts vs $myhost. You then only reference $myhost:
> alias =>
Just out of curiosity, why aren't you using DNS?
If you were, you could easily map your DNS to a hosts file for speed
and synchronize it regularly.
Alternatively, you could use a custom function on the server to make
it all work for you.
Trevor
On Fri, Feb 27, 2009 at 17:13, Jason Slagle wrot
On Feb 27, 2009, at 4:13 PM, Jason Slagle wrote:
>
> Ok, so I figured I'd move this here since IRC isn't the place for it.
>
> Ok, so I have my 40ish servers. Of those, 36 or so of them have hosts
> entries that need to look like this:
>
> 127.0.0.1 localhost
> 172.x.x.x