-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust params and mpm to recent FreeBSD packages
- Loading branch information
Showing
2 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70db610
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.
this commit broke this module on freebsd. i'm curious why you changed the logic in mpm.pp. the
"${mod_dir}/${mpm}.load"
file resource should only be instantiated in two cases:since this change, that file resource is instantiated on all OSes when apache_version >= 2.4, and that isn't what the behavior should be on freebsd.
70db610
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.
What's the exact version of your apache package? The MPM behaviour was changed with freebsd/freebsd-ports@85ee94e8
70db610
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. I updated from 2.4.10_1 to 2.4.12 and everything was fine. If that's the case though, this change should really be updated either to support 2.4 both at and below .12 (since it's currently broken for anyone on 2.4 prior to .12) or it should change to fail in freebsd if the package version is less than 2.4.12. which of those is preferred is probably best answered by @igalic, @mhaskel, or another puppetlabs-apache commiter.
70db610
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'm afraid that's not really possible. Theretically this would require to define a fact with the exact version and then implement all the logic for the differences. On Linux it's easy as the base system is lockstepped with the rest of the packages and stable over a (major) release. As FreeBSD ports are completely rolling and disconnected from the base system version it's not possible to handle it like that.
70db610
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.
perhaps at the very least the readme should be updated to say that freebsd requires at least 2.4.12? otherwise we've forced the module to fail for people and given them no indication as to why or how to fix it.
70db610
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.
@sethlyons yeah, unfortunately documentation updates are probably the best bet here. Do you have the bandwidth to submit a PR for that, since you're probably better versed in the issue and how to resolve it. Thanks!