Issue #11320 has been updated by Jeff McCune.
Status changed from Accepted to Needs More Information
Assignee set to Ramin K
> The above works and matches my regex for Ubuntu Precise testing. However I
> can not find any way to use the value of node_name_value as a fact.
Hey, so I just saw this ticket.
Ramin, if you want to set the node's name based on the value of a fact I think
you should use the `node_name_fact` setting. The node_name_value setting is
meant to be hard coded in puppet.conf where as the node_name_fact setting is
meant to specify a facter fact that will provide a value for the node name.
>From the output of `puppet agent --genconfig`:
<pre>
...
# The explicit value used for the node name for all requests the agent
# makes to the master. WARNING: This setting is mutually exclusive with
# node_name_fact. Changing this setting also requires changes to the
default
# auth.conf configuration on the Puppet Master. Please see
# http://links.puppetlabs.com/node_name_value for more information.
# The default value is '$certname'.
node_name_value = maynard.local
...
# The fact name used to determine the node name used for all requests the
agent
# makes to the master. WARNING: This setting is mutually exclusive with
# node_name_value. Changing this setting also requires changes to the
default
# auth.conf configuration on the Puppet Master. Please see
# http://links.puppetlabs.com/node_name_fact for more information.
# The default value is ''.
# node_name_fact =
</pre>
With this information, could you let me know if this is still a bug?
----------------------------------------
Feature #11320: node_name_value unavailible as a fact
https://projects.puppetlabs.com/issues/11320#change-60233
Author: Ramin K
Status: Needs More Information
Priority: Normal
Assignee: Ramin K
Category: library
Target version:
Keywords:
Branch:
Affected Facter version:
I'm not sure this is a bug so I'm calling it a feature until someone says
otherwise. What I'm trying to do is divorce certname from fqdn and the name of
the node from either of those. Comments in Issue #2128 could be interpreted to
say that this is an acceptable and valid use case.
Client is 2.7.6 with Facter 1.6.2. The master is 2.7.6. I have this set in my
puppet.conf on the client. No changes to the standard config on the master for
node names.
<pre>[agent]
certname = 007f0101
node_name_value = precise01.stage.aws</pre>
The above works and matches my regex for Ubuntu Precise testing. However I can
not find any way to use the value of node_name_value as a fact.
I could write a custom fact, but it seems like I should be able to access
node_name in some way for manifests outside of it's mapping to certname,
clientcert, hostname, or fqdn. Also I'm not sure that solves the problem since
I'd end up setting node_name_fact rather than using node_name_value.
--
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.