Issue #2807 has been updated by Dan Bode.
Status changed from Closed to Re-opened
Assigned to deleted (Markus Roberts)
Target version deleted (2.6.0)
After looking into this feature, I want to reopen the ticket for discussion:
The implementation did not meet my expectations, but its possible that my
expectations are incorrect.
I expected $settings:: to return config settings for the client, but it
actually returns the servers config settings.
I ran the following tests:
node default {
notify {"certname is: ${settings::certname}":}
notify {"noop is: ${settings::noop}":}
}
<pre>
puppetd -t --certname blah --noop
</pre>
<pre>
notice: /Stage[main]//Node[default]/Notify[certname is: puppetmaster]/message:
is absent, should be certname is: puppetmaster (noop)
notice: /Stage[main]//Node[default]/Notify[noop is: false]/message: is absent,
should be noop is: false (noop)
</pre>
Its clear base on this test that neither of these values are coming from the
client's config. I verified that they were in fact coming from the server's
config.
<pre>
puppetmasterd --no-daemonize --verbose --noop
</pre>
<pre>
puppetd -t --certname blah
</pre>
<pre>
notice: certname is: puppetmaster
notice: /Stage[main]//Node[default]/Notify[certname is: puppetmaster]/message:
defined 'message' as 'certname is: puppetmaster'
notice: noop is: true
notice: /Stage[main]//Node[default]/Notify[noop is: true]/message: defined
'message' as 'noop is: true'
</pre>
even though this ticket was assigned to Markus, I unassigned it before I
re-opened it. Mostly out of confusion.
----------------------------------------
Feature #2807: Settings should be available within the parser
http://projects.puppetlabs.com/issues/2807
Author: Mario Verbelen
Status: Re-opened
Priority: Normal
Assigned to:
Category: language
Target version:
Affected version: 0.25.1
Keywords:
Branch:
It should be straightforward to make all of the Puppet settings available as
variables within the language, and this has been asked for many times.
--
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.