Issue #6513 has been reported by Markus Roberts.

----------------------------------------
Bug #6513: Settings code does not propagate environment
https://projects.puppetlabs.com/issues/6513

Author: Markus Roberts
Status: Accepted
Priority: Normal
Assignee: 
Category: settings
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


The code in settings does not always propagate the environment, creating 
situations in which inconsistent results can be produced.  A simple (albeit 
highly contrived) example, given:

test.conf
<pre>
[master]
    rrddir = /var/lib/puppet/rrd
    templatedir = /var/lib/puppet/templates
[env_a]
    templatedir = $rrddir/templates
    rrddir = /tmp/env_a/
</pre>

the command:

<pre>
RUBYLIB=lib bin/puppet master --config ./test.conf --environment env_a 
--configprint templatedir
</pre>

produces "/var/lib/puppet/rrd/templates" instead of the expected 
"/tmp/env_a/templates"

This was independently discovered by Jacob Helwig & Seth Samuel by code 
inspection; there are no known reports of it in the wild.



-- 
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.

Reply via email to