-
Notifications
You must be signed in to change notification settings - Fork 79
Drop puppet 3 support and use data types for parameters #167
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
Conversation
|
@ghoneycutt Just FYI, relates to PR discussion for MOTD module, the message for Puppet 4.9.x: |
21f4fe8 to
c89475d
Compare
|
Thanks for all the hard work! I think it's time we drop string |
| --- | ||
| language: ruby | ||
|
|
||
| rvm: |
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.
Let's use the same Travis config as https://github.com/sensu/sensu-puppet/blob/master/.travis.yml
Only slightly different in testing for puppet-strings and some new minor releases of Puppet 5.
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.
Updated to use the linked .travis.yml.
| Optional[String] $config_file_source = undef, | ||
| Pattern[/^[0-7]{4}$/] $config_file_mode = '0640', | ||
| Stdlib::Absolutepath $limits_d_dir = '/etc/security/limits.d', | ||
| Pattern[/^[0-7]{4}$/] $limits_d_dir_mode = '0750', |
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.
You'd think stdlib would give us a mode pattern by now :)
| {"name":"ghoneycutt/common","version_requirement":">= 1.4.1 < 2.0.0"}, | ||
| {"name":"ghoneycutt/nsswitch","version_requirement":">= 1.3.0 < 2.0.0"}, | ||
| {"name":"puppetlabs/stdlib","version_requirement":">= 4.6.0 < 5.0.0"} | ||
| {"name":"puppetlabs/stdlib","version_requirement":">= 4.13.1 < 5.0.0"} |
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.
Curious is there something special about 4.13.1 that has functionality we are using?
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 think I pulled that from some official puppetlabs modules that got updated to only support Puppet 4/5. The 4.13.0 is needed for custom Stdlib data types, like the one for validating absolute path.
|
Happy to go to a new major version. Are there other things we should change about the module? @Phil-Friderici what do you think? |
fa5a82a to
6dea7a7
Compare
|
@ghoneycutt Part of major version, maybe move various defaults to module level Hiera? The pam class code is extremely long and mostly just default values. This may be unrealistic given some defaults are based on Maybe saving some lines by using |
6dea7a7 to
7816ad9
Compare
|
I'd like to drop support for VAS in the next major version and instead just document what values should be used. We could setup a vas/ directory with the hiera structure in it so that you could copy those to your hiera and have VAS working. <-- @Phil-Friderici Would definitely like to switch to data in modules, which we just did for sgnl05/sssd. This will also cut way down on lines of code. |
7816ad9 to
3457c75
Compare
|
@ghoneycutt I'd be happy to help with such changes via different pull requests. May be a good time to use something like https://skywinder.github.io/github-changelog-generator/ to generate CHANGELOG, something I've seen used in voxpupuli projects. |
|
@ghoneycutt There are several deprecated parameters in |
|
+1 to the changelog generator. I'm doing that on other projects. |
|
I made a branch named puppet5. Could you point this against that branch? That way we can all work on the breaking changes and get them merged as they come in and time when we merge the whole thing into master. I wont make any changes to master in the meantime, so we aren't stuck in rebase hell. |
|
Go ahead and remove the deprecated params in their own commit. |
d5e6cae to
d8b24e5
Compare
|
@ghoneycutt Added commit for removing deprecated parameters, let me know if anything in this PR should be split into separate PR. |
system_auth_ac_auth_lines system_auth_ac_account_lines system_auth_ac_password_lines system_auth_ac_session_lines
7b45477 to
9cd37d3
Compare
|
I dont think we actually need yard and redcarpet as puppet-strings will pull in its dependencies |
Changing from |
This PR is incomplete, I have not updated the main pam class. I wanted to know, should things that currently accept string or boolean and use str2bool be continued or should the data type just be Boolean? These changes likely require a major version bump so figured maybe good time to force parameters to be the proper data type.