Re: [Puppet Users] Dependencies between custom facts

2010-11-25 Thread Nigel Kersten
On Wed, Nov 24, 2010 at 10:15 PM, Paul Nasrat wrote: > On 20 November 2010 16:42, Nigel Kersten wrote: >> On Fri, Nov 19, 2010 at 12:56 PM, Steve Atwell wrote: >>> I need to write a custom fact that depends on the value of another >>> custom fact in a different file.  For example: >>> >>> # foo.

Re: [Puppet Users] Dependencies between custom facts

2010-11-24 Thread Paul Nasrat
On 20 November 2010 16:42, Nigel Kersten wrote: > On Fri, Nov 19, 2010 at 12:56 PM, Steve Atwell wrote: >> I need to write a custom fact that depends on the value of another >> custom fact in a different file.  For example: >> >> # foo.rb >> Facter.add("foo") do >>    setcode do >>        [...] >

Re: [Puppet Users] Dependencies between custom facts

2010-11-20 Thread Nigel Kersten
On Fri, Nov 19, 2010 at 12:56 PM, Steve Atwell wrote: > I need to write a custom fact that depends on the value of another > custom fact in a different file.  For example: > > # foo.rb > Facter.add("foo") do >    setcode do >        [...] >    end > end > > # bar.rb > Facter.add("bar") do >    set