On Monday, November 17, 2014 4:11:09 AM UTC-6, Steven Post wrote:
>
> 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?
>
>

I'm not quite following.  Perhaps a bit more detail about your data 
structure would be helpful.

If I were setting up an options hash then I would use option names as the 
keys (e.g. 'XX:NewRatio') and option values as the values (e.g. 3).  If you 
were doing it that way, however, then you couldn't express different values 
for the same option in your hash, so you couldn't have the same option 
expressed twice.


John

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/95770f3b-c2d5-4f0d-a238-023e0054b553%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to