Hi all,
first thanks to all of you. At least I found a solution taking a bit from all the hints. This is ( one possible ) solution:
irb(main):001:0> require 'facter'
=> true
irb(main):002:0> require 'puppet'
=> true
irb(main):003:0> a = Facter.value(:userblweb)
=> nil
irb(main):004:0> Puppet.initialize_settings
=> "notice"
irb(main):005:0> a = Facter.value(:userblweb)
=> "1000\n"
As you can see, after invoking initialize_settings my custom fact seems to be in place / known to facter. Now I'll have a look how it works outside irb in real puppet master/agent environment.
Regards
Andreas