Okay, I have my first clue:
# THIS FILE IS MANAGED BY PUPPET
# /etc/puppetlabs/puppet/environments/production/modules/hosts/templates/
trusty/etc/hosts.erb

This file does not exist....nice!

On Monday, June 29, 2015 at 10:06:20 AM UTC-7, Aaron Lager wrote:
>
> @John, the host modules are for maintaining the /etc/hosts files.  On 
> windows it's located in %systemroot%\system32\drivers\etc\hosts
> ghoneycutt-hosts is the module I'm trying to use.
>
> I've tried with the hash both ways:
> {"10.150.28.8":"puppet.mybluebolt.com"}
> or
> {"puppet.mybluebolt.com":"10.150.28.8"}
>
> The result is the same, the file is reverted back to :
> #
> # THIS FILE IS MANAGED BY PUPPET
> # 
> /etc/puppetlabs/puppet/environments/production/modules/hosts/templates/trusty/etc/hosts.erb
> #
>
> 127.0.0.1       localhost
> 10.150.28.4     AVC2-WUS1-APP01.AVC2-WUS1-CS1.d6.internal.cloudapp.net 
>  AVC2-WUS1-APP01
>
> # The following lines are desirable for IPv6 capable hosts
> ::1     localhost ip6-localhost ip6-loopback
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
>
>
> Is there a log file somewhere that might hint at what is going on?
>
> Thanks,
> Aaron
>
>
>
>>>
>>
>> I cannot say exactly what you're doing wrong, as I am uncertain what 
>> "the" /etc/hosts modules are, or why anyone would need more than one such 
>> module.  You clearly are not talking about the standard Host resource type, 
>> as it has no parameter named "host_entries".
>>
>> Inasmuch as the Host resource uses the hostname as its identifier, I 
>> suspect the wanted hash will have hostnames as keys.  I would not be 
>> surprised to hear that the expected form of the hash was something like 
>> this (YAML):
>>
>> 'hosts::hostentries':
>>   'puppet.mybluebolt.com':
>>     'ip': '10.150.28.8'
>>     'host_aliases': 'puppet'  # optional; may also be an array
>>
>> That matches up with the underlying Host resource type 
>> <https://docs.puppetlabs.com/references/stable/type.html#host>, and it 
>> is the form that would be used with the standard create_resources() 
>> function 
>> <https://docs.puppetlabs.com/references/stable/function.html#createresources>.
>>   
>> This is all an educated guess, however, inasmuch as I don't know what 
>> module you are in fact using.  Any way around, I'm sure PL would appreciate 
>> feedback about the shortcomings of its documentation on this point.  They 
>> might pick it up from your post here, as several employees do participate, 
>> but you cannot rely on that.
>>
>>
>> Regards,
>>
>> John
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/11202772-ed1d-4185-aa36-a795e391a69d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to