Use fact() function for all os.distro.* facts
authorChristos Papageorgiou <christos.papageorgioy@gmail.com>
Thu, 24 Feb 2022 11:59:00 +0000 (13:59 +0200)
committerChristos Papageorgiou <christos.papageorgioy@gmail.com>
Thu, 24 Feb 2022 12:13:08 +0000 (14:13 +0200)
commit47b92efb88ead2bad5845b6da9c07a0a5364d930
tree53f540cadfbfa276a7e7dd40fc3bd9c65784a36b
parent966ca80c56af071e53179d6d04cdd21f6523121f
Use fact() function for all os.distro.* facts

* On Puppet 6 facter 3.x requires lsb-release to resolve os.distro.* facts. Using $facts hash cause errors like "Evaluation Error: Operator '[]' is not applicable to an Undef Value." because os.distro is undefined causing the catalog to fail. Use fact() to identify Undef facts and throw an error to the user.

Signed-off-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
REFERENCE.md
manifests/backports.pp
manifests/ppa.pp
manifests/source.pp