I am talking about facts other than hostname, such as ipaddress, custom facts.
On Mon, Jul 23, 2012 at 4:47 PM, Craig White <craig.wh...@ttiltd.com> wrote: > > On Jul 23, 2012, at 4:07 PM, Hai Tao wrote: > >> Hi, >> >> As the only paramater we can pass to the ENC is the hostname, I wonder >> if there is a way to access a node's fact in the ENC script? >> >> I know a workaround is to query my Fact database ( I am using Mysql), >> but I like to know if I can use a variable directly, for example, >> $ipaddress? > ---- > $hostname should work > $fqdn is an option but that will likely carry a domain name with it. > > Craig > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- Hai Tao -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.