Issue #13679 has been updated by Stefan Schulte.
Status changed from Unreviewed to Accepted
verified that the current implementation does not have any escaping mechanism:
lib/puppet/util/settings.rb:
<pre>
def convert(value, environment = nil)
return value unless value
return value unless value.is_a? String
newval = value.gsub(/\$(\w+)|\$\{(\w+)\}/) do |value|
varname = $2 || $1
if varname == "environment" and environment
environment
elsif pval = self.value(varname, environment)
pval
else
raise Puppet::DevError, "Could not find value for #{value}"
end
end
newval
end
</pre>
----------------------------------------
Bug #13679: dollar signs can't be used in puppet.conf
https://projects.puppetlabs.com/issues/13679#change-59774
Author: Daniel Friesen
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
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.