We just switched from Oracle Java to OpenJDK for licensing issues.
The same Puppet code now results in an installation error:
Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Unrecognized VM option 'UseParNewGC' Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Error: Could not create the Java Virtual Machine. Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Error: A fatal exception has occurred. Program will exit. Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Unable to install system startup script for Logstash.
I know that for Java one should remove the lines with
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC
but the Puppet-module keeps inserting them... It's default.
Any ideas how to remove these?