-
-
Notifications
You must be signed in to change notification settings - Fork 39
Add Bareos 22 (rebase) #169
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
manifests/init.pp
Outdated
| $file_mode = $bareos::params::file_mode, | ||
| $file_dir_mode = $bareos::params::file_dir_mode, | ||
| String $repo_release = '21', | ||
| $user_groups = $bareos::params::user_groups, |
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.
Can you add a data type for this new parameter? Probably Array[String[1]].
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.
Also, as it is a new parameter, do not put the default value in params.pp but put it here. That way, the actual value is documented when you generate the documentation.
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.
If you don't mind, I'd like to add that as part of attempting to get #154 incorporated, as well. If you do mind, of course, I'm not opposed to adding it, here, it just feels vaguely like making a style shift like that all at once is "cleaner?"
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.
Also, as it is a new parameter, do not put the default value in
params.ppbut put it here. That way, the actual value is documented when you generate the documentation.
I was mostly aiming to port the original author's work mostly-unmolested, but I also find the use of params.pp here icky. Is it better to try and stick with a clean rebase, or should I just go ahead and fix things While I'm In Here™?
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.
After some discussion out-of-band, I've added updates to remove $user_groups from params.pp and add typing for the param in init.pp.
| $file_dir_mode = $bareos::params::file_dir_mode, | ||
| String $repo_release = '21', | ||
| $user_groups = $bareos::params::user_groups, | ||
| String $repo_release = '22', |
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.
Changing the default version make it a breaking change. This is just a FYI, if the latest version is 22 we can change the default in the next (major) version. I will add a backward-incompatible label accordingly.
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 see #161 is about adding support for bareos 23. Do you plan to rebase this version too next?
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.
The latest version is actually 24 - there's another PR that adds support for version 23 that I'd like to ALSO get merged, and if someone wants to cut a new (breaking) release, well, master already contains unreleased breaking changes at the moment.
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.
👍 we can do a single major release that default to 24 then, I think it is sensible.
Freshen code style to bring things more up to date and avoid legacy patterns like params.pp and untyped parameters. Includes updates to REFERENCE.md.
Pull Request (PR) description
This is a rebase of #129 onto
master(which should make all the tests pass, now, or at least it does when I run them locally).This Pull Request (PR) fixes the following issues
Fixes #142