-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
(FEAT) Add simple standardized header template #171
base: master
Are you sure you want to change the base?
Conversation
1cdb715
to
253f382
Compare
@@ -63,6 +63,35 @@ The following sections/settings are included. | |||
} | |||
``` | |||
|
|||
### EPP Templates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to see a native puppet function that takes all these parameters. Something like
extlib::puppet_managed(String $message = 'WARNING This file is managed by puppet. Do not edit!',
String $begin_line = '#',
String $end_line = '',
Int $line_length = 70,
String $metadata_title = 'Metadata:',
Hash $metadata = {} ) >> String {
}
# process content here and break into multiple lines
Then in the template it would be
<%= extlib::puppet_managed() %>
Int $line_length = 70, | ||
String $metadata_title = 'Metadata:', | ||
Hash $metadata = {} | ||
| -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is complex and too many tags to understand. Would prefer to have the logic in the function.
Dear @jcpunk, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli Github Bot. I noticed that your pull request has CI failures. Can you please have a look at the failing CI jobs? |
Pull Request (PR) description
It seems every module has a different way of putting the This is a puppet managed file don't edit it in their templates. They are all a bit different and each one says slightly different things. This is my attempt to get something a bit more unified in place so folks can have greater consistency in their modules.