-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Automatically include modules used in vhost directories #2255
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
Automatically include modules used in vhost directories #2255
Conversation
@ekohl Look's like another few spec failures have shown their heads, almost there 🤞 |
2081493
to
10a3e5f
Compare
Tests have been running for a long time. I suspect there is a failure in many cases which means it generates a ton of errors. I pushed a commit that massively reduces the spec tests so hopefully I get a faster result. |
Ah, it doesn't run the vhost tests on non-Debian. That's surprising since other code suggests it does run on that. Will update again. |
d31eae1
to
23f775a
Compare
This is much easier to iterate on. |
I tried fixing it, but somehow it still doesn't recognize the param docs for gssapi:
|
23f775a
to
a7876e7
Compare
Well, that's green. Removing the temporary commit to see if it all fits together. |
a7876e7
to
d21c139
Compare
@ekohl Seems to be a few spec test failures left. All coming from the same section:
Only appearing on scientific, oracle and redhat 6 so they didn't show when you cut to Ubuntu |
Ah yes, I only ran the quick tests with Debian enabled. Now with the full matrix we test a bit more. Looks like there are some tests there that verify behavior when the vhost is set to absent. Now that the whole directories concat fragment is only rendered when it's present, it's not in the catalog. I'll rewrite the test. |
Before moving it I'd like to merge #2256 because it makes the refactor easier. |
d21c139
to
a396669
Compare
@ekohl Look's like the spec test failures are still there |
I ended up wanting to do more refactors so I've split off yet another part in a more focused PR: #2257. Apologies for the scope blowing up, but I believe it makes it easier to maintain in the future. |
No need to apologize, I'm liking all the changes |
This ensures the proxy module is always loaded at the right time.
This makes it easier to run with default mods disabled while still using this mod.
This tightens the data type to a simple array of hashes (as the parameter documentation suggests). This allows the logic to be simpler. Because of this, it is now fairly easy to include the correct modules if needed. Some options are implemented but there are more which could be automatically included.
a396669
to
3241a6d
Compare
Rebased to resolve the conflicts. Let's see if the tests pass. |
I'm not quite sure why GH actions don't run. |
The data passed to the directories parameter of apache::vhost often implies a module should be present. This change inspects the passed data and automatically includes modules if needed. This makes it easier to use via Hiera while disabling all default mods. Because of this change one acceptance test becomes obsolete: it no longer fails and just works.
3241a6d
to
040eab9
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.
LGTM
Ok, everything's gone green so I'm happy to merge. |
The data passed to the directories parameter of apache::vhost often implies a module should be present. This change inspects the passed data and automatically includes modules if needed. This makes it easier to use via Hiera while disabling all default mods.
Because of this change one acceptance test becomes obsolete: it no longer fails and just works.
To make this easier the data type is simplified. This means users need to be a bit stricter about their input, but they need to worry less about including the right modules.
This replaces #2250.