-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Allow to listen on multiple IP addresses #174
Conversation
44a5ed9
to
07980ba
Compare
07980ba
to
a4ef88d
Compare
But maybe since #173 breaks backward compatibility, no need to support a |
I agree, this makes code more simple. |
☑️ backward compatibility code removed |
@smortex Whould you like I merge too on this project after a review? |
I would prefer to have a second approval by somebody external of @opus-codium we both belong to before merging 😉 If we have no news in a few day, no objection to pull the trigger. |
1a37b94
to
3f51adb
Compare
3f51adb
to
516358a
Compare
516358a
to
4b9fd8c
Compare
I updated the PR to not set an explicit listen address by default, which bacula understands as listen on all IPv4 only (so same behavior as before). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the PR to not set an explicit listen address by default, which bacula understands as listen on all IPv4 only (so same behavior as before).
IMHO, this behavior should be shorty documented. Could you put a note in the variable documentation?
The fact that The only thing that annoys me here is that the service only listen on IPv4 by default (which is an issue at Bacula's level), and I do not think the module documentation is the right place to describe this since this can change at any point upstream? |
OK, so we had to support OS-independent and idempotent way. What about putting some hiera files, OS-dependant to reach the same behavior on each OS? |
I really don't know how we could deal with this: system dependent config also look wrong to me: the default behavior of FreeBSD and e.g. Debian is not the same in the way that Debian offer IPv6 mapped IPv4 by default while FreeBSD doesn't. But as stated above, Debian can be tuned to opt-out, and of course FreeBSD can be tuned to opt-in 🤷 Above I wrote "Linux" but I really meant "Debian", I don't know if the default is the same for every Linux distro, and I would not be surprised to see it is not. And since it is tunable, I think that sticking to upstream default is the best way to not break POLA. Maybe in the end a note in the README is better? What information would you like to see there? |
4b9fd8c
to
4f9c8e2
Compare
"variable documentation" 🤯 Yeah! Did that! Thanks! |
By default, the daemons listen on the system IPv4 address only. The year is 2022, we can listen on IPv6 too :-)
4f9c8e2
to
5671dd6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent explanation (in reference documentation)!
Allow to pass multiple IP addresses. The default behavior is to listen on IPv4 only so this is only a breaking change because the interface change.