-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> distid = Facter.value('lsbdistid')
> if distid.match(/RedHatEnterprise|CentOS|Fedora/)
sidenote: you can use confine for such things.
[...]
> I can see the fact on the client node (but only if I add "--puppet"):
> # facter --puppet|
Scott Beardsley writes:
> I was slightly surprised to see that there is no "gateway" fact.
Er, this fact is mostly unhelpful: there is no "gateway" — there are
zero-or-more gateways, depending on the route on the server, which may or may
not get used to communicate to any given destination.
A n
I was slightly surprised to see that there is no "gateway" fact. I
poked around and it seems easy enough to add but I'm running into a
problem... My gateway.rb looks like:
# gateway.rb
Facter.add("gateway") do
setcode do
begin
Facter.lsbdistid
rescue
Fa