-
Notifications
You must be signed in to change notification settings - Fork 50
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
Make FreeRADIUS 3.0.21 the target version for config #142
Make FreeRADIUS 3.0.21 the target version for config #142
Conversation
I'm away from home for a couple of days so I won't get to review this properly until tomorrow, but I just wanted to say re: point 3, I don't think there is a problem with breaking changes provided we tag a new release with a new major version to reflect this. As far as I recall, I only built in support for 3.1.x because at the time it was the only branch that had fixes for some very specific bugs I reported to the FreeRADIUS project, so we were running this in production. I'm not sure how many other organisations would be using it, but I think there was quite a lot of chatter about 3.1.x at the time so I wouldn't be surprised if there were several. Off the top of my head I can think of several universities and hospitals. I think it would be worth keeping the support for 3.1.x but toggling with optional switches etc. It would be fine to introduce new switches or change defaults if we do this in a major release bump. |
Yep that makes sense. I had a bit more of a think about this over the weekend as well - I think what makes the most sense is to include those configuration options and for now but them generate a warning if the specified or detected FR version is not 3.1. I was thinking it might make sense to be able to pass a hash or array of "extra" options to allow for special cases. puppet/nginx has this with their |
e1fc515
to
ec536b3
Compare
I've given this a go as described - I've added this warning, and in addition I've made each of the params only show in the config if it is explicitly set, OR if we detect that we are on FR3.1.x and there is a non-undef default. That version check considers both the freeradius_version fact, and the package_ensure param. ps. don't take my activity on these as urgency or anything, I'm just getting things out of my head and on to paper - enjoy your time away! |
Hey, I've just realised this is still open. Was the work completed etc? Thanks 😄 |
Haha - yeah I thought about it the other day as well. Let me get back to you tomorrow (2345 here). We’ve been running in production with a number of improvements and so on that I’ve made like this one, so will revisit it and look at some PRs for the others. |
Awesome, thanks. Talk soon |
OK - I've done some further work on this. In previous iterations the logic was broken for displaying warnings. Now:
I have had some trouble getting the testing to work with this, however. I'm unable to catch the warning() or fail() here. I'm not convinced that the PDK test unit stuff is working properly, as it has some errors I'm not seeing on other projects. I've left my attempts commented out here. Wondering if the right approach is to merge, then raise fixing this testing as an issue. Thoughts? |
I think it's absolutely fine to merge something that's incomplete, provided it's incrementally closer to our desired state, and doesn't make things worse in the meantime 👍 |
bb6c956
to
3942ae2
Compare
This will be good to go (I think) once I've pulled in changes from master once the validation_fixes branch is merged. |
Fix indent things Revert
FreeRADIUS v3.1.x branch is experimental and will never be completed now that v4.x is being worked on.
This reverts commit 7d005aa.
… we are targetting is 3.1.x or not
3942ae2
to
069414d
Compare
Impacted params: - connect_timeout - session_tracking - use_referral_credentials Only set each of these params in the config if: - it is intentionally set in the params, or - we are on FR3.1.x, in which case set the default of 3.0 If they are set in the params, and we detect we are NOT on FR3.1.x, then warn Additionally, move the LDAP module tests to the module directory
Only set the sql connect_timout in the config if: - it (via `pool_connect_timeout`) is intentionally set in the params, or - we are on FR3.1.x, in which case set the default of 3.0
efc2241
to
c3f547b
Compare
I've approved this as the checks are passing but haven't given it any testing. Happy to hit the merge button when you've confirmed that all the work on this branch is finished, as it's quite a big one. Then I guess we should talk about rolling a new release 😄 |
Yep - this work is all looking good to me. I can push the merge button now - my first one ! |
The current configuration templates are taken from a mixture of FreeRADIUS 3.0.4, and the experimental 3.1.x branch.
This change updates the templates to match the configuration for FreeRADIUS 3.0.21 across the board.
This is marked as WIP as there is an open question in item 3 below.
In doing so, there are some changes: