-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 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,31 @@ | ||
# @summary Re-usable, overridable strings for file headers | ||
# | ||
# @param custom_installer_name | ||
# Override installer_name in headers from "Puppet" to e.g. "foreman-installer" | ||
# | ||
# @param custom_settings_explanation | ||
# Custom string providing further instructions to the user in settings.py header | ||
class pulpcore::header_strings( | ||
Optional[String] $custom_installer_name = undef, | ||
Optional[String] $custom_settings_explanation = undef, | ||
) { | ||
if $custom_installer_name { | ||
$installer_name = $custom_installer_name | ||
} else { | ||
$installer_name = 'Puppet' | ||
} | ||
|
||
if $custom_settings_explanation { | ||
$explanation = $custom_settings_explanation | ||
} else { | ||
$explanation = @("EXPLANATION"/L) | ||
Not only are your edits likely to be overwritten, there is also a strong possibility \ | ||
of breaking your system if you change configuration here without making required \ | ||
changes elsewhere. Refer to the documentation you used to install Pulpcore to \ | ||
determine the safe and persistent way to modify the configuration. | ||
| - EXPLANATION | ||
} | ||
|
||
$installer_header = "File managed by ${installer_name}.\nModule: ${module_name}" | ||
$warning_header = '!!! WARNING: DO NOT EDIT THIS FILE !!!' | ||
} |
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