https://docs.puppetlabs.com/facter/2.2/core_facts.html#hostname

this is what you want

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. In specific, I'd like the node's name in the node definition. 
>
> node "foobar" { 
>      include this 
>      include that 
> } 
>
> I'd like to get "foobar".  In my case, this is probably NOT the facter 
> variable fqdn or hostname. 
>
> I can't find this documented anywhere. 
>
> Assistance? 
>
> Thanks, 
> </edg> 
> Ed Greenberg 
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group. 
> To post to this group, send email to [email protected] 
> <javascript:>. 
> To unsubscribe from this group, send email to 
> [email protected] <javascript:>. 
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en. 
>
>

-- 
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/82b1907a-87a7-4aa9-9c61-12b685e33208%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to