Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Night's Watch
-
3
-
NW - 2021-04-14
-
Needs Assessment
-
Bug Fix
-
-
Needs Assessment
Description
Facter 4 (up to 4.0.52) provides a way to create structured facts from multiple fact definitions. However, the feature is not compatible with other parts of the Puppet ecosystem and can cause facts to be named differently in Facter 4 than in Facter 2/3.
In order to avoid changing Puppet manifests, hiera lookups, PE classification rules, dotted custom and external facts should not be automatically promoted to structured facts.
Treating those facts as structured will still be possible by usging a global facter setting which by default is set to false.
Eg:
default behavior
# custom fact
|
Facter.add('a.b.c') do |
setcode { "d" } |
end
|
|
# external fact
|
a.b.c=d
|
|
is represented as { "a.b.c": "d" } |
setting true
# custom fact
|
Facter.add('a.b.c') do |
setcode { "d" } |
end
|
|
# external fact
|
a.b.c=d
|
|
is represented as
|
{
|
"a": { |
"b": { |
"c": "d" |
}
|
}
|
Attachments
Issue Links
- blocks
-
PA-3693 Bump facter-ng to latest released Facter 4 gem
-
- Resolved
-