Re: [Puppet Users] access facts in ENC

2012-07-24 Thread Stefan Schulte
On Mon, Jul 23, 2012 at 08:25:49PM -0400, Brian Gupta wrote: Your ENC script can pretty much do whatever you want it to do. I'm not exactly following what you want to do with the facts, but you could upload them to your ENC like so:

[Puppet Users] access facts in ENC

2012-07-23 Thread Hai Tao
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? Thanks.

Re: [Puppet Users] access facts in ENC

2012-07-23 Thread Craig White
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

Re: [Puppet Users] access facts in ENC

2012-07-23 Thread Hai Tao
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