You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#37 covered how to set custom structured facts but this doesn't seem to work when I want to override an existing nested structured fact.
For example, I want to force $facts['os']['selinux']['enabled'] to be true regardless but it's always false because that's what is now set in the shipped facts, (fairly sure it used to be true or unset in previous facterdb releases so it was working by chance).
#37 covered how to set custom structured facts but this doesn't seem to work when I want to override an existing nested structured fact.
For example, I want to force
$facts['os']['selinux']['enabled']
to betrue
regardless but it's alwaysfalse
because that's what is now set in the shipped facts, (fairly sure it used to betrue
or unset in previous facterdb releases so it was working by chance).I found there is a
deep_merge
gem pulled in via Puppet so I tried instead:But this gem seems to have odd merge behaviour and won't overwrite existing values.
What's the easiest way to do this?
The text was updated successfully, but these errors were encountered: