Re: [Puppet Users] Puppet variable within a Fact

2014-11-18 Thread Antoine Cotten
True, I could try the file approach, the only drawback is that it would take 1 Puppet run before the fact is defined, but the same would hold true with the environment variable. Thanks Henrik! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. T

Re: [Puppet Users] Puppet variable within a Fact

2014-11-17 Thread Henrik Lindberg
On 2014-17-11 12:40, Antoine Cotten wrote: Dear fellow Puppet users, Is there any convenient way to access a variable defined in a Puppet class from within a custom fact? Facts come before puppet variables. At best you can get some value from the *previous* catalog application by writing it

[Puppet Users] Puppet variable within a Fact

2014-11-17 Thread Antoine Cotten
Dear fellow Puppet users, Is there any convenient way to access a variable defined in a Puppet class from within a custom fact? I'm trying to reuse a Puppet variable within a fact definition, but can't find any way to look it up like I would do within an ERB template. Example (fictional): Fact