Am Mittwoch, 27. Mai 2015 11:26:35 UTC+2 schrieb Thomas Müller: > > > > Am Mittwoch, 27. Mai 2015 08:36:39 UTC+2 schrieb [email protected]: >> >> Hi, >> >> is it possible to use custom facts inside other custom facts? >> >> With facter -p the custom fact is listed ( e.g.): >> >> the -p / --puppet flag for facter is deprecated. use of "puppet facts" > will be required. > > https://docs.puppetlabs.com/facter/2.4/release_notes.html#facter-244 > > >> ... >> userblweb => 1000 >> >> With irb: >> >> irb(main):001:0> require 'facter' >> => true >> irb(main):002:0> a = Facter.value(:userblweb) >> => nil >> >> Any idea? >> > > You would need to somehow do what the -p/--puppet flag does so it loads > the facts in the puppet environment. >
seems like the relevant code: https://github.com/puppetlabs/facter/blob/stable/lib/facter/application.rb#L199 - Thomas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/88254476-eca8-4dcc-ad4d-ae1502f202fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
