Steven Post
2014-Nov-17 10:11 UTC
[Puppet Users] How best to use hiera for Java options? (with hash_merge)
Hi, I've been using puppet for over a year now, but now I have a problem, and I'm not seeing a solution. I have a hash to set up Java application servers in hiera, these get 'deeper' merged so we don't need duplicate declarations of every little option. Inside the manifest, the create_resources() function is called. Now the problem here is that one of the options inside the hash is an array of Java options, such as heap size, the garbage collector, the OOM behaviour, etc. Since arrays gets merged with hiera_hash in a 'deeper' merge, these options would be merged as wel. The heap and permsize are actually already separate options, so they don't have this problem, but if I set '-XX:NewRatio=2' and I wan't to override this for some nodes or clusters, I would set it as '-XX:NewRatio=3', but then this option is passed down twice, but with different values. How to solve this? Does anyone else have any experience to share about this? Regards, Steven -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c4e561d7-c5c5-47af-9b80-ac259a0fe208%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.