Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion access facts in ENC
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hai Tao  
View profile  
 More options Jul 23 2012, 7:56 pm
From: Hai Tao <ehai...@gmail.com>
Date: Mon, 23 Jul 2012 16:56:48 -0700
Local: Mon, Jul 23 2012 7:56 pm
Subject: Re: [Puppet Users] access facts in ENC
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+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

--
Hai Tao

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.