Problem:
Since we want to use the openscap module, we need to define “specify matchers” based on the dropdown value of “os” for the package_name variable.
Ive tried different variations of this but im not able to make it match on anything using the “os”.
What ive tried:
“Debian”, “Debian*”, “Debian 11”, “Debian 11.3”
I find the documentation to be a bit sparse on this subject (The links in docs doesnt even work, and the button in foreman likewise doesnt work, it points to the wrong sub chapter (https://puppet.example.net/links/manual/4.2.6SmartMatchers but it should be 4.2.5SmartMatchers).
Documentation has a single example showing the Attribute type of “environment” and stating that its matching on string equality only. This is fine, but i dont know what the “OS” type is based on.
As a side note im also wondering if i can use custom facts to match here? I saw some reference to this somewhere, but i dont understand how that would work since we are locked to using the dropdown…
Expected outcome:
I set the value to “Debian 11.3” and it should match as this is what is listed as “OS” on the host in foreman.
Foreman and Proxy versions:
3.10
Foreman and Proxy plugin versions:
N/A
Distribution and version:
Rhel 8.9
Other relevant data:
I have checked facts on client:
# /opt/puppetlabs/puppet/bin/facter os
{
architecture => "amd64",
distro => {
codename => "bullseye",
description => "Debian GNU/Linux 11 (bullseye)",
id => "Debian",
release => {
full => "11.3",
major => "11",
minor => "3"
}
},
family => "Debian",
hardware => "x86_64",
name => "Debian",
release => {
full => "11.3",
major => "11",
minor => "3"
},
selinux => {
enabled => false
}
}