ERB - don't output variable value if current config file has a value?
To clarify the title there is a config file for some application that I have used Puppet to deploy, however the application encrypts certain variables at service startup rather than the plaintext that I am passing in through Puppet. Each time Puppet runs it wants to replace these hashed/encrypted strings.
Is there a way to tell Ruby/ERB/Puppet not to output from the
<%= @myVar %> if there is already a string in that location in the configuration file already present on the server?
Hopefully that makes sense.