On Tuesday, 31 January 2017 16:12:02 UTC, R.I.Pienaar wrote:
>
>
>
> On Tue, Jan 31, 2017, at 17:02, Paul Seymour wrote: 
> > 
> > 
> > On Tuesday, 31 January 2017 15:55:01 UTC, R.I.Pienaar wrote: 
> > > 
> > > Can you stick the resulting server.cfg on a gist so I can see the 
> whole 
> > > thing? 
> > > 
> > > I use the puppetlabs ini module for this, I think the [] suggests it 
> > > might be trying to make ini file sections with nothing in - so this 
> > > might mean there's some behaviour change in the ini module perhaps? 
> What 
> > > version of puppetlabs-inifile do you have? 
> > > 
> > > 
> > > 
> > Hello, 
> > 
> > https://gist.github.com/PsychoSid/f754d5677c18e1da0f5ec8701cd87b8d 
> > 
> > Lines 27-38 are me attempting to clean some of the entries to see if 
> that 
> > helped. 
> > 
> > I am using v1.6.0 of the inifiles module 
> > 
> >   "name": "puppetlabs-inifile", 
> >   "version": "1.6.0", 
> >   "author": "Puppet Labs", 
> > 
>
> That's the version I also use, pretty sure this is about the section 
> somehow being set. 
>
> This sux but do you have anywhere in your code something like 
> Ini_setting{ ... } - ie. setting defaults for that resource type? 
>
> For me the code below in test.pp does the right thing, for you it doesnt 
> somehow: 
>
>   ini_setting{"xx_server_test": 
>     path     => "/tmp/server.cfg", 
>     setting  => "test", 
>     value    => "hello world" 
>   } 
>
>   % puppet apply test.pp --modulepath environments/production/forge 
>   Notice: Compiled catalog for dev4.devco.net in environment production 
>   in 0.16 seconds 
>   Notice: /Stage[main]/Main/Ini_setting[xx_server_test]/ensure: created 
>   Notice: Applied catalog in 0.02 seconds 
>
>   % cat /tmp/server.cfg 
>   test = hello world 
>

The plot thickens, as suspected must be local to me.

[]
test = hello world 

Will go through it looks like someone has added some providers to our local 
puppetdb module. Someone/thing has been playing with my greenfield setup 
somewhere. Ggrr bloody co-workers :)

modules/puppetdb/lib/puppet/provider/ini_setting/ruby.rb

Many thanks for the help, appreciate it.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"mcollective-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to