[Puppet Users] hiera_array() overriden when used as default class parameter

2014-09-11 Thread Bruno Léon
Hi there, it took me while to figure this out but it seems that when you do set the default value of a class parameter to the value hiera_array('myparameter'), hiera does not do an array merge but a standard most specific value found. This is on Puppet 3.7. I created a module to show

[Puppet Users] Re: hiera_array() overriden when used as default class parameter

2014-09-11 Thread Bruno Léon
Double checked by temporarily removing /usr/lib/ruby/vendor_ruby/puppet/parser/functions/hiera_array.rb from puppet master If called in the body this raises an error as expected. If called as a default class parameter = no error so the function is not called 2014-09-11 16:26 GMT+02:00 Bruno Léon

[Puppet Users] Re: hiera_array() overriden when used as default class parameter

2014-09-11 Thread Bruno Léon
Got a reply on IRC chan and I actually was wrongly thinking that the default param value would have precendence over databinding. Sorry for the noise... Bruno 2014-09-11 16:58 GMT+02:00 Bruno Léon nonolem...@gmail.com: Double checked by temporarily removing /usr/lib/ruby/vendor_ruby/puppet

Re: [Puppet Users] Re: How to handle multiple modules requiring the same packages

2014-03-28 Thread Bruno Léon
For this kind of stuff i created a package module that only ships packages potentially shared (python lib, curl, etc...). I virtually déclare un thé module ans realie un the main modules Le 27 mars 2014 15:03, och ach och...@gmail.com a écrit : same problem here. just find that razor module has

Re: [Puppet Users] Re: puppet-dashboard - rake API not working

2012-11-20 Thread Bruno Léon
Does it fail or only warn ? I can only see dprecation warnings in your message. -- Bruno On November 19, 2012 11:36:17 PM Jacob wrote: Thanks :) Now I get snip # sudo -u puppet-dashboard rake -f /usr/share/puppet-dashboard/Rakefile 'node:list' (in /usr/share/puppet-dashboard) DEPRECATION

[Puppet Users] Hiera autolookup for defined types

2012-11-06 Thread Bruno Léon
Hello, since Puppet 3 hiera is doing auto variable lookup for classes, which in my view makes the code much clearer simply because we can use include foo instead of class { 'foo': param1 = value, param2 = value, } However, AFAIK there

[Puppet Users] Define - Class dependencies not respected

2012-06-13 Thread Bruno Léon
by requiring the subclass install directly, but I think that is unexpected. I hope some will be able to shine my lights on this Puppet behaviour. Thanks -- Bruno Léon -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email

Re: [Puppet Users] Hiera - How to set a parameter to the value false

2011-11-15 Thread Bruno Léon
On 11-11-11 12:56 PM, Peter Meier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been using hiera for a few weeks now, but I'm stuck now trying to set a value to false Basically, I have a class that read its parameter in hiera, and in a yaml file I have the following code: ---

[Puppet Users] Hiera - How to set a parameter to the value false

2011-11-07 Thread Bruno Léon
Hello, I've been using hiera for a few weeks now, but I'm stuck now trying to set a value to false Basically, I have a class that read its parameter in hiera, and in a yaml file I have the following code: --- use_ecrypt_fs: true server_region: fr puppet_enable: false This ultimately