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
Fix FreeBSD support #32
Conversation
normally, I'd say a new OS is "enhancement", but we had FreeBSD in the metadata.json before, it was just not working. |
lol, and now I see #24 -.- |
eae4129
to
7929826
Compare
Interestingly, this still fails
Fore some reason Puppet doesn't want to actually start the service |
For some reason, the service is not started after this:
|
so it turns out, it defaults to log to stderr, which, uh, doesn't work well if it gets executed by puppet and shit crashes. |
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 see minor issues like no way to override default_config, but maybe it is not something that will annoy anybody, and if so they will be happy to find a working module before hitting this anyway, so LGTM!
Yeah, I don't like that |
as an alternative we could make this non empty on FreeBSD? puppet-mosquitto/manifests/init.pp Line 23 in 9cb6d3a
|
I think that it is good enough for now. If you want to improve further, something that allow a user to override some defaults without loosing the others would be the best. This is generally done by having independent parameters, with system dependent default values in Hiera (so a breaking change). I am not a user of Mosquitto so I do not know what In either case, it is a lot of changes and not really related to this PR which just fix FreeBSD support. |
especially the unconditional `else` breaks on FreeBSD which has no iproute
otherwise `service mosquitto status` doesn't work
otherwise the service doesn't properly start up when run by puppet
Pull Request (PR) description
This Pull Request (PR) fixes the following issues