Issue #13679 has been updated by Daniel Friesen.
I do have a suggestion on how to best handle compatibility.
Take a bit from single quote style escaping:
dbpassword = asdf$asdf # $asdf is considered a variable
dbpassword = asdf\$asdfasdf # \ is an escape this turns into 'asdf$asdfasdf'
dbpassword = asdf\\$asdf # The \\ self escapes to a single \ and $asdf is
considered a variable
dbpassword = asdf\asdf # The \ has nothing to escape so it's considered a
literal part of the data and kept
This would avoid any issue with existing configuration using a \ except for the
one case where someone uses a \\.
Or there's always sql quote escaping style ('') / %time format escaping (%%):
dbpassword = asdf$$asdfasdf
Treating $$ as literal there.
----------------------------------------
Bug #13679: dollar signs can't be used in puppet.conf
https://projects.puppetlabs.com/issues/13679#change-60378
Author: Daniel Friesen
Status: Code Insufficient
Priority: Normal
Assignee:
Category: settings
Target version:
Affected Puppet version:
Keywords:
Branch: https://github.com/puppetlabs/puppet/pull/640
Plain dollar signs ($) can't be used inside puppet.conf.
I tried quoting text with quotes and escaping with \ and neither work.
This is important in the case of passwords. If you have a long mysql password
for stored configs like "sdf^3wre$4aer..." you get an error saying that $4 is
not defined.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.