So I started over from scratch, and now I get the following error on the 
agent:
 sudo puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
can't convert Array into Hash at 
/etc/puppetlabs/puppet/environments/production/modules/hosts/manifests/init.pp:149
 
on node

line 149 is
146   if $host_entries != undef {
147     $host_entries_real = delete($host_entries,$::fqdn)
148     validate_hash($host_entries_real)
149     create_resources(host,$host_entries_real)
150   }


What is wrong with my syntax?

Aaron


On Friday, June 26, 2015 at 5:26:49 PM UTC-7, Aaron Lager wrote:
>
> I'm evaluating PE and after the super simple success of the ntp example, I 
> thought I'd try out the /etc/hosts modules.
> I'm trying to add additional host entries, but all that happens is my 
> existing additional entries (including one for puppet) get removed from the 
> nodes host file.
>
> Here is my value for host_entries:
> {"10.150.28.8":"puppet.mybluebolt.com"}
>
> There are no errors reported, that I'm aware of.  The documentation simply 
> says it's a Hash of host entries.
> I don't understand what I am doing wrong.
>
> Thanks for any help you can give.
>
> Aaron
>

-- 
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/9ffb4584-6a6e-4ac9-8a4d-837f12bf598d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to