[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-19 Thread Steven Post
Hi, So if I understand correctly, I can use 'null' as a value, and it will be used instead of the value somewhere lower on the hierarchy? If that is the case, my problem is solved (I think). Completely preventing the nonsensical stuff is not the goal here, but it should be possible in hiera to

[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-19 Thread Steven Post
Hi, My problem is solved now, I'll see if I can change the topic title to reflect that. The final solution looks like this: jboss_application::app_version::jvm_defaults: additional_java_opts: useconcmarksweepgc: '-XX:+UseConcMarkSweepGC' newratio: '-XX:NewRatio=2'

[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-18 Thread Steven Post
On Monday, November 17, 2014 4:06:02 PM UTC+1, jcbollinger wrote: 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

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
Hi Craig, If you scroll down on the website you mentioned, you'll see some usage instructions. I recommend *not* to change the module (not even adding your own wl.pp file inside), but to set up your wl.pp file elsewhere. You can use your own class (wl.pp, located outside this module) to set up

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
a class - certainly I can create a new wl class for this but then I am struggling to make these things work inside a class. On Tuesday, November 18, 2014 5:32:54 AM UTC-7, Steven Post wrote: Hi Craig, If you scroll down on the website you mentioned, you'll see some usage instructions

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
, } } On Tuesday, November 18, 2014 9:06:34 AM UTC-7, Steven Post wrote: The roles/profile pattern does not use node inheritance, only class inheritance. Strictly speaking, this isn't even necessary, it can just make some things easier. At my company, we don't even use any real node

[Puppet Users] How best to use hiera for Java options? (with hash_merge)

2014-11-17 Thread Steven Post
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

[Puppet Users] Re: scope of variable inside defined type

2014-11-17 Thread Steven Post
Hi, The simplest I can think of would be to set up '$yy' as a parameter, and then pass that one down from install.pp However, looking at this limited code snippet, perhaps you shouldn't even have a define in the install.pp, but a class that inherits from 'foo'. Then you can access the $yy