-
Notifications
You must be signed in to change notification settings - Fork 49
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
Move params logic to hiera data #162
Milestone
Comments
Closed
Did some testing on that one see https://github.com/pixelpark/puppet-freeradius/tree/migrate_to_hiera Current issue are the spec tests since they using some magic i do not understand: https://github.com/djjudas21/puppet-freeradius/blob/main/spec/spec_helper_local.rb#L10-L31 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The puppet language style guide (https://puppet.com/docs/puppet/7.6/style_guide.html) recommends using data binding rather than the params.pp pattern.
As well as being a more "modern" way of doing things, this also allows the user to override anything that params.pp would currently be calculating - making the module a lot more flexible.
This has the negative impact that the module's supported minimum Puppet version would be 4.9, as this is when Hiera 5 with in-module hiera data support was added. Given this was released in 2017 I think this is an OK minimum version.
The current minimum version is 4.0.0 (2015).
An example of this would be:
hiera.yaml
:data/debian/9.yaml
:It would also mean making most (if not all) of the
fr_*
variables be straight params on thefreeradius
class, i.e., for the above examples:The text was updated successfully, but these errors were encountered: