-
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
Add support for installing and managing radsniff #157
Conversation
I have ubuntu servers, so I can test it... I'm going to try it |
I think that i could run in Ubuntu systems with a few changes:
|
How does that look @amateo ? I've added support for looking at the freeradius params file, and have added optional 'envfile' and 'pidfile' options to extend support to more OSes or configurations. |
I looks ok |
Sorry... I think I have found some bugs, I'll send you a patch as soon as I get it. |
Just need this change:
|
Thanks, good catch. Let me see if I can figure out why my unit test didn't catch that, and then update it to catch it and include your fix. |
73c847f
to
687f70b
Compare
OK. I really botched that up. I had named the spec file incorrectly - it has to have So, anyway. I've pushed a new commit - I'll squash all of the changes on this branch together before we actually merge this, but I have left it un-squashed so you could see the changes. I'm not super happy with how all the tests work here with params etc. - If we do #162 then this can be significantly simpler, as everything comes in to the tests as parameters on the class under test. |
This works on redhat family systems only. Add camptocamp/systemd to manage systemd unit file.
…pidfile to support any OS
…mistakes I had made..
This is quite lightweight - it installs a systemd service, and a sysconfig options file.
All configuration is passed in an "options" string, allowing the user to use it however they want.
In a future version we might want to consider exposing all the radsniff command line options back in to puppet, but I don't think we need to do that right away.
This currently only works on Redhat/Centos - though that should be easy to extend.. I just don't have debian etc. machines running FR so not sure exactly what's needed there.
I've been using this patch in my local copy of the module and it works fine.
Additional module requirement is camptocamp/systemd.
Change outside the scope of radsniff is allowing all users to read the dictionary files.