How to get default variables lookup path to use structured Puppet facts?

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x
  • Puppet 4.x

Issue

  • Satellite seems to be missing smart class matcher support for structured Puppet facts.

Resolution

  • Puppet 4 introduces structured facts:
satellitefacts => {
  datacenter => "dc1",
  lifecycle => "library",
  zone => "default"
}
  • Make the following changes to the Default variables lookup path setting to use structured Puppet facts:
Administer > Settings > Puppet(tab) > Default variables lookup path > Add [ fqdn, hostgroup, os, domain, 'satellitefacts::datacenter', 'satellitefacts::lifecycle', 'satellitefacts::zone' ]

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments