Closed ltutar closed 8 years ago
Trying to set gerrit::params::java_home in your hiera / class calls isn't going to do anything. The params class doesn't consume anything.
The correct way to override the default is to have something like the following:
gerrit::override_options:
container:
javaHome: '/usr/java/default'
Or if calling the gerrit class manually it would be something like:
class { 'gerrit':
override_options => {
'container' => {
'javaHome' => '/usr/java/default',
},
}
}
Thank you. It is working. I have now:
gerrit::override_options:
container:
user: 'gerrit'
javaHome: '/usr/java/default'
without the user line, I get the error
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Missing title. The title expression resulted in undef at /etc/puppetlabs/code/environments/production/modules/gerrit/manifests/install.pp:161:10 on node jenkinsagent.home
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Ah yes, sorry I forgot to include / mention that. The hash merging of puppet doesn't do deep merges without special setup that affects an entire site.
No problem. I started using your module today and I am also new to gerrit. You may get some questions from me the next days :)
No worries. I've been supporting Gerrit for almost 3 years now. I wrote this because we at The Linux Foundation support 5+ different Gerrit systems and we needed a decent role / profile designed module and there wasn't one out there.
I am managing my own java and set the gerrit::install_java: false in yaml. I get the following error. I am not able to set java_home to /usr/java/default The line gerrit::params::java_home: '/usr/java/default' in yaml is also not working.