I would do this:
additional_java_opts:
'-XX:+UseConcMarkSweepGC': null
'-XX:NewRatio': 2
'-XX:+CMSClassUnloadingEnabled': null
'-XX:OnOutOfMemoryError': 'kill -9 %p'
'-XX:+HeapDumpOnOutOfMemoryError': null
or perhaps this:
additional_java_opts:
'UseConcMarkSweepGC': true
'NewRatio': 2
'CMSClassUnloadingEnabled': true
'OnOutOfMemoryError': 'kill -9 %p'
'HeapDumpOnOutOfMemoryError': true
If the YAML parser doesn't recognize null as the primitive it is (in YAML 1.2) then perhaps it would be better to use an empty string instead, or else use the second form. The other part of the equation is how those data are
used. Since you are at liberty to change the form of the data, you must also be at liberty to change the template, resource type, or whatever that consumes the data. Changes certainly will be needed there, and your choice for the form of the data may be influenced by how you choose to update their consumer.