-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Module quality update #520
Conversation
@kenyon Hello it's been a while, in my attempt to remove the params.pp i also took the opportunity to rework the module entirely. The unit tests still need to updated and maybe some other things not related to the code. My main questions is how to progress towards a new release is this something i need to do or how would this be done? |
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.
Looks pretty good.
We like to have parameter defaults documented in REFERENCE.md as much as possible, so move everything from common.yaml
to init.pp
.
Don't put anything in spec/fixtures
, the test code automatically copies everything there.
I would avoid aligning the =
signs in class parameter lists, since it causes lots of diffs which makes changes harder to review, and can get hard to read when lines get lengthy.
As far as a new release, it's the usual procedure: the change is merged into the master
branch, and eventually we make a new major release.
Good to know nothing has to be in spec/fixtures I will try to move some things from common but what about big hashes like the admin policy and the os family specific things? |
OS-specific things should still go in the OS data file in hiera. I think big hashes in |
I moved the parameter values to init.pp but i'm having some difficulties with framework_config. This should be merged with the defaults from rundeck because if you overwrite the framework_config paramter then you lose all defaults if you don't set them explicitly like rdeck.base and i would like to avoid this so what's the best approach for this? |
One thing you can do is make |
33aa22a
to
0ab1c4c
Compare
@kenyon I updated the specs and references even further for me everything checks out one check fails but it has nothing to do with the actual unit tests. The only thing still on my todo is to update the readme as this includes wrong example for now. |
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.
Looks pretty good so far.
cb0f2a5
to
27b9c61
Compare
27b9c61
to
d501d49
Compare
@kenyon Update the PR for ubuntu and the unit tests all check out. |
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.
Looks good.
Do you want to squash the commits?
Would it be helpful to add a section to the README about how to migrate to this new version of the module from the current version?
Yeah maybe it's best to squash the commits as there are quite a lot and some commits are not really clear on what they do exactly. For the migration part i think this will kind off be part of the change logs because all the breaking changes will be in there. |
Should i do the squash now or will you do it when merging? |
Release PR #523 includes this change. |
I'm sorry to say that this pull request actually reduced the quality of the module. This parameter:
Found on this line, is now hard-coded in the module and prevents new installation of rundeck and a postgresql backend. In the version before this change (v8.0.1), it was a proper parameter:
Because of that fixed parameter, new installs of rundeck with Postgresql generate this error:
Manually removing this parameter results in rundeck starting just fine. I will also log an issue for this. |
Pull Request (PR) description
This PR will make several changes to follow the best practices of puppet more and remove deprecated parameters.
Like removing params.pp
Removing projects_storage_type parameter
...
This will be a breaking change for some use cases.
This Pull Request (PR) fixes the following issues
Fixes #197
Fixes #373
Makes #398 obsolete
Fixes #406
Fixes #426
Fixes #445
Makes #447 obsolete
Fixes #451
Fixes #452
Fixes #457
Fixes #472
Fixes #479
Fixes #484
Makes #487 obsolete
Makes #521 obsolete