Skip to content
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

Remove legacy fact usage #225

Merged
merged 1 commit into from
Dec 27, 2022
Merged

Remove legacy fact usage #225

merged 1 commit into from
Dec 27, 2022

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Dec 26, 2022

We can now run puppet without legacy facts:

puppet config set include_legacy_facts false

When doing so, the module fail to get the default value for $dns::zone::soa. Fix it by using the networking.fqdn fact.

While here, adjust a few more legacy facts.

@@ -63,7 +63,7 @@
define dns::zone (
Array[String] $target_views = [],
String $zonetype = 'master',
String $soa = $fqdn,
String $soa = $facts['networking']['fqdn'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd that the lint plugin to find legacy facts didn't find this.

templates/options.conf.erb Outdated Show resolved Hide resolved
spec/defines/dns_logging_category_spec.rb Outdated Show resolved Hide resolved
We can now run puppet without legacy facts:

```
puppet config set include_legacy_facts false
```

When doing so, the module fail to get the default value for
$dns::zone::soa.  Fix it by using the networking.fqdn fact.

While here, adjust a few more legacy facts.
@ekohl ekohl changed the title Fix legacy fact usage Remove legacy fact usage Dec 27, 2022
@ekohl ekohl added the Bug label Dec 27, 2022
@ekohl ekohl merged commit 5eda0a8 into theforeman:master Dec 27, 2022
@ekohl
Copy link
Member

ekohl commented Dec 27, 2022

I'll consider this as a bugfix to 6426a39.

@smortex smortex deleted the legacy-facts branch December 27, 2022 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants