-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #27847 - Refactor foreman_proxy_content class
* Move $parent_fqdn to Advanced Parameters since users generally don't touch this * Implement stricter data types * Use modern facts * Work around a kafo_parsers/puppet-strings limitation by using class inheritance
- Loading branch information
Showing
3 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# @summary Defaults for certs::foreman_proxy_content::params | ||
# @api private | ||
# | ||
# This class exists because puppet-strings generates a string "[]" rather than | ||
# an empty array in json for defaults. Kafo also can't handle the hash $facts | ||
# even though it's the current recommended default. By adding indirection to a | ||
# class we can work around this. | ||
class certs::foreman_proxy_content::params { | ||
$parent_fqdn = $facts['networking']['fqdn'] | ||
$foreman_proxy_cname = [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters