[Puppet Users] help with ghoneycutt hosts on PE

2015-06-26 Thread Aaron Lager
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 va

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

2015-06-29 Thread Aaron Lager
ve the behaviour you > describe. > > more info : > https://docs.puppetlabs.com/references/latest/type.html#resources > > On Fri, 2015-06-26 at 16:45 -0700, Aaron Lager wrote: > > I'm evaluating PE and after the super simple success of the ntp example, I > thought I&

[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 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 a

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

2015-06-29 Thread Aaron Lager
at 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 ent

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

2015-06-30 Thread Aaron Lager
into a Hash. Using your provided sample snippet: Error 400 on SERVER: "'hosts::hostentries': 'puppet.mybluebolt.com': 'ip': '10.150.28.8' 'host_aliases': 'puppet'" is not a Hash. I fee like I'm a fish flopping aroun

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

2015-06-30 Thread Aaron Lager
an't convert String into Hash argh! On Tuesday, June 30, 2015 at 9:04:51 AM UTC-7, jcbollinger wrote: > > > > 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 >> ag

[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

[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