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
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",
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
@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
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
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
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
@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
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