On Friday, November 7, 2014 12:34:52 AM UTC-6, Andy Wong wrote: > > https://docs.puppetlabs.com/facter/2.2/core_facts.html#hostname > > this is what you want >
No, actually, it's not. The string that is used to match nodes to node blocks is the the client's certname, which is available as $clientcert, not (directly) its hostname. The default configuration of the agent results in these two having the same value, but *assuming* they will be the same incurs a risk that you simply don't have to take. > > Ed Greenberg於 2010年5月6日星期四UTC+8上午5時07分02秒寫道: >> >> When writing an ERB template, I know that I can define variables in my >> nodes and classes, and that the facter variables for the node are >> available. >> >> I'd like to know if there are any other predefined puppet variables >> available. > > The docs cover precisely this question here: https://docs.puppetlabs.com/puppet/3.7/reference/lang_facts_and_builtin_vars.html . John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d5da056e-ad78-4298-8fa2-757a26b46ecb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
