Skip to content
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

Inconsistent use of variables like $freeradius::fr_version or freeradius::params::fr_version #200

Open
djjudas21 opened this issue Aug 16, 2023 · 1 comment · May be fixed by #202
Open

Comments

@djjudas21
Copy link
Owner

Split out from #199 (review) originally reported by @cruelsmith

Interesting was also that you are inconsistent on when to use a variable like $freeradius::fr_version or freeradius::params::fr_version:

if $freeradius::fr_version !~ /^3/ {

https://github.com/djjudas21/puppet-freeradius/pull/199/files#diff-cca6889b64c6c07c33af277dbcf338b95dc71c6c04ce1aa72bd4ed43e39106b2

Normally this should be

Suggested change

-  require freeradius::params
+  require freeradius

but when doing it the spec tests are failing because of Duplicate declaration: File[/etc/raddb]. I did not found the issue for that one. That is why i keep it here with freeradius::params even so the variable $freeradius::fr_3_1 is used here.

@nward
Copy link
Collaborator

nward commented Aug 17, 2023

I think the resolution to this should be removing the params class entirely and using hiera, and in the handful of cases where more logic is required (i.e. perhaps setting $fr_version) we can do that in init.pp.

@cruelsmith cruelsmith linked a pull request Aug 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants