-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refs #37291 - Reset Puppet's java_bin #922
Conversation
In theforeman/puppet 19.2.0 the puppet::server_jvm_java_bin parameter was changed to undef and determined at runtime. This helps with Puppet 8 upgrades.
Commit message assumes theforeman/puppet-puppet#911 is merged & released |
/packit build |
I think this is unrelated:
|
Yeah, pretty sure it is. I was just curious if it was a fluke. |
I just tried this out on a previously broken # grep JAVA_BIN /etc/sysconfig/puppetserver
JAVA_BIN=/usr/lib/jvm/jre-17/bin/java
# pgrep --list-full java
5902 /usr/lib/jvm/jre-17/bin/java --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED -Xms2G -Xmx2G -Dcom.redhat.fips=false -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -XX:ReservedCodeCacheSize=512m -Dlogappender=F1 -XX:+CrashOnOutOfMemoryError -XX:ErrorFile=/var/log/puppetlabs/puppetserver/puppetserver_err_pid%p.log -cp /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.jar:/opt/puppetlabs/server/data/puppetserver/jars/* clojure.main -m puppetlabs.trapperkeeper.main --config /etc/puppetlabs/puppetserver/conf.d --bootstrap-config /etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/ --restart-file /opt/puppetlabs/server/data/puppetserver/restartcounter |
@@ -0,0 +1,3 @@ | |||
if answers['puppet'].is_a?(Hash) && answers['puppet']['server_jvm_java_bin'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be
if answers['puppet'].is_a?(Hash) && answers['puppet']['server_jvm_java_bin'] == '/usr/bin/java'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Still doesn't explain why AlmaLinux didn't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I just went looking and thought "oh, wait" :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theforeman/puppet 19.2.0 the puppet::server_jvm_java_bin parameter was changed to undef and determined at runtime. This helps with Puppet 8 upgrades.