Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Gary Larizza
> > > What do you mean, 'generate a custom value'? In what manner is a facter > 'custom value' different from a return value in the surrounding Facter.add > block? Why would code outside of a setcode block make someone in the know, > as it were, uneasy? > > >> The value of the last expression in t

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Nan Liu
On Mon, Aug 22, 2011 at 10:05 AM, Brian Troutwine wrote: > On Mon, Aug 22, 2011 at 11:31 AM, Gary Larizza wrote: >> >> >>> It's a function of my ignorance of writing custom facts. I have yet to >>> find a good reference for doing so and aped entirely code examples found >>> online. I haven't the

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:31 AM, Gary Larizza wrote: > > > It's a function of my ignorance of writing custom facts. I have yet to find >> a good reference for doing so and aped entirely code examples found online. >> I haven't the slightest idea of what setcode does. Here's my top search >> resu

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Gary Larizza
It's a function of my ignorance of writing custom facts. I have yet to find > a good reference for doing so and aped entirely code examples found online. > I haven't the slightest idea of what setcode does. Here's my top search > result for 'factor puppet': > > Good question. The 'setcode do" ...

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:03 AM, jcbollinger wrote: > > > On Aug 22, 2:08 am, Brian Troutwine wrote: > > Hello, all. > > > > I am unable to get the utilize the output of a custom fact in a template > > while, simultaniously, succeeding at doing so with another custom fact. I > > receive no error

[Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread jcbollinger
On Aug 22, 2:08 am, Brian Troutwine wrote: > Hello, all. > > I am unable to get the utilize the output of a custom fact in a template > while, simultaniously, succeeding at doing so with another custom fact. I > receive no errors and am utterly at a loss. The failing custom fact that > looks lik