Am Mittwoch, 27. Mai 2015 08:36:39 UTC+2 schrieb ashe...@gmail.com: > > 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. another note: IMHO ruby facter is also deprecated and native facter will be default with facter v3. - 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/156556e8-61d1-4013-9294-0c9dc0ff4056%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.