-
Notifications
You must be signed in to change notification settings - Fork 16
enc.rb: Replace fqdn->networking.fqdn fact #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
(I haven't tested this locally) |
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
I'm guessing test failures are related |
I'm not 100% sure where spec/static_fixtures/fake.host.fqdn.com.yaml is coming from. It's a Puppet::Node::Facts object. Is that the kind of facts the puppetserver stored a decade ago? On modern systems you just have |
There is still code to load data from nodes so perhaps it's worth digging into when that was removed: puppet-puppetserver_foreman/files/enc.rb Lines 190 to 201 in 1c58844
|
https://www.puppet.com/docs/pe/2023.0/osp/server/release_notes.html#puppet-server-700 puppetserver 7 switched the default facts terminus from yaml to json. |
Because there's still a fallback to |
or maybe it could still be an issue??? I can't really remember where how See https://github.com/f5devcentral/f5-puppet/blob/defaf02856282ddea61b81bdcc9473f34ffff812/lib/puppet/util/network_device/f5/facts.rb#L14 for an example of how limited facts from a 'device' can be. |
Followup for #53 (review)