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
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
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
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
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
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
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
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:
---
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