larstobi/puppet-glassfish — pull request #9 by kgsharp (2013-05-15 13:33:39+00:00)
Title: update resource matching to work with variables inside glassfish config

Inside, the glassfish jvm-options, there are things like ${instanceRoot}. Unfortunately, this results in a bash "bad substitution" if you try to just use it in the puppet config. For example,

jvmoption {
['-Djavax.net.ssl.keyStore=$\{com.sun.aas.instanceRoot\}/config/keystore.jks']:
ensure => absent,
}

This results in a proper jvm-options-delete command being run. However, the matching fails to see that the resource name is the same as the current JVM option.

I just updated the resource matching to pull out the "\" if they are in the resource name so it works.