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

Use name instead of shortname for client definition #198

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

cruelsmith
Copy link
Contributor

Pull Request (PR) description

Use name instead of shortname in client definition for filename, firewall rule and huntgroup to allow the same shortname for different clients.

This Pull Request (PR) fixes the following issues

In some setups it may be needed that a client must be published multiple times with different ip addresses. In 1.x it was possible since it the client "name" was the IP itself. For 2.x the client "name" is now the shortname but there exist no definition that it needs to be uniq as far as we could found.

fbrehm and others added 2 commits August 16, 2023 11:07
for filename, firewall rule and huntgroup to allow the same shortname for different clients
@nward
Copy link
Collaborator

nward commented Aug 16, 2023

Hi - this seems reasonable to me - I prefer use of name for things that have to be unique, like filenames, other resources, etc. rather than some other parameter on the define. @djjudas21 what do you think?

@djjudas21
Copy link
Owner

I'm happy to rubber-stamp this. Thanks for your contribution @cruelsmith

@djjudas21 djjudas21 self-requested a review August 16, 2023 10:22
@djjudas21
Copy link
Owner

Quick question - what's the behaviour for people who are already running this and have configured clients? Will this leave orphaned files that might cause FreeRADIUS to behave oddly?

@cruelsmith
Copy link
Contributor Author

@djjudas21 The client configs will be cleaned up by puppet since purge is defined:

purge => true,
recurse => true,

The freeradius::huntgroup will also be cleaned up because of the concat used for it.

For firewall the user is itself is responsible to configure it to be autocleaned up since it is out of scope of the module here. It only provide the firewall rules and nothing more.

@djjudas21 djjudas21 merged commit 31db98a into djjudas21:main Aug 16, 2023
@cruelsmith cruelsmith deleted the use_name_instead_of_shortname branch August 17, 2023 18:45
cruelsmith added a commit to pixelpark/puppet-freeradius that referenced this pull request Sep 27, 2024
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 this pull request may close these issues.

4 participants