[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-30 Thread Aaron Lager
And final post, an example of two hosts: {"hostname.example.com":{"ip":"1.2.3.4","host_aliases":"an_alias"}, "hostname2.example.com":{"ip":"1.2.3.5","host_aliases":"an_alias2"}} On Tuesday, June 30, 2015 at 3:49:25 PM UTC-7, Aaron Lager wrote: > > Answer from puppetlabs that works: > {"hostname.e

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-30 Thread Aaron Lager
Answer from puppetlabs that works: {"hostname.example.com":{"ip":"1.2.3.4","host_aliases":"an_alias"}} yay! On Tuesday, June 30, 2015 at 10:02:31 AM UTC-7, Aaron Lager wrote: > > Using a JSON validation tool, I massaged your sample into: > { "hosts: : hostentries": "puppet.mybluebolt.com",

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-30 Thread Aaron Lager
Using a JSON validation tool, I massaged your sample into: { "hosts: : hostentries": "puppet.mybluebolt.com", "ip": "10.150.28.8", "host_aliases": "puppet" } But the agent still doesn't like it: Error 400 on SERVER: can't convert String into Hash argh! On Tuesday, June 30, 2015 at

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-30 Thread Aaron Lager
@John, thanks for your patients with me. I'm a total noob at this stuff. Following the links you gave me, I came up with this: {name => 'foo', ip => '192.168.168.1'} But the agent says: Error 400 on SERVER: "{name => 'foo', ip => '192.168.168.1'}" is not a Hash. The image below from the P

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-30 Thread jcbollinger
On Monday, June 29, 2015 at 4:01:36 PM UTC-5, Aaron Lager wrote: > > 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 fr

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-29 Thread Aaron Lager
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/pupp

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-29 Thread Aaron Lager
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 existnice! On Monday, June 29, 2015 at 10:06:20 AM UTC-7, Aaron Lager wrote: > > @John, the host modules are for maint

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-29 Thread Aaron Lager
@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.2

[Puppet Users] Re: help with ghoneycutt hosts on PE

2015-06-29 Thread jcbollinger
On Friday, June 26, 2015 at 7:26:49 PM UTC-5, 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 (in