overriding foreman parameters via custom puppet fact
Is this possible? Currently we have the following layout
foreman global default paramenter $param = 'a'
I want to override this value for some hosts using a puppet custom fact
Facter.add('param') do setcode do fqdn = Facter.value(:fqdn) if fqdn =~ /^some regex$/ "b" end end end
When I test the custom fact using facter -p I get the expected result. With that said however when I use the value of $param in one of our manifests, it looks like the value of $param defined in foreman takes precedence. Is there a way to get this to work without manually overriding the value of param inside foreman itself for each host that we need to have a value different than the default?