-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add fcgid options #716
Add fcgid options #716
Conversation
Failure from Travis:
I think this is unrelated to my change. In puppet-foreman we set the 1.8.7 ruby explicitly to MRI in theforeman/puppet-foreman@93fb9b4 to avoid REE. |
Thank you very much for your contribution, @ekohl! |
@igalic Added some documentation in the README. |
This looks great! The only thing missing is the lack of a beaker acceptance test. Could you take a look in spec/acceptance and copy and tweak one of the existing tests to cover this? Thanks! |
heheh... ._. I hope that when @ekohl adds a new commit there won't be a third contributor coming along, saying, "This looks fantastic, the only thing that's missing now …" |
Updated. @igalic Let's see if someone now says 'I like these RH tests, but where are the debian ones'. |
This adds fcgid.conf to configure the fcgid module. It also adds the FcgidWrapper option to vhost's directories. The vhost option lacks any validation and allows users to shoot themselves in the foot, but without iteration from the puppet future parser I don't see a way to add the validation. Iteration would also allow auto including apache::mod::fcgid.
@ekohl I guess if someone wants to go through the pain of supporting all platforms, they are welcome to submit their own pr. A general observation here: A puppet module is supposed to abstract away the need to consider differences between platforms. A puppet module test then undoes all that process, by exposing all the guts, and being retracing all the steps. I'm not sure we're doing testing right. |
@igalic I think tests can be written to share some things. Maybe it would be better to have a switch statement per testcase if there's platform specifics (httpd must be running vs apache2). Doing a curl to localhost could be shared since that part is platform independent. In the end you must test the guts here because that's what you are abstracting away from the user, but not every test is platform specific. Does that make sense? |
heh, yeah, does. Thanks for the sliver of hope ;) |
This adds fcgid.conf to configure the fcgid module. It also adds the
FcgidWrapper option to vhost's directories.
The vhost option lacks any validation and allows users to shoot themselves in
the foot, but without iteration from the puppet future parser I don't see a
way to add the validation. Iteration would also allow auto including
apache::mod::fcgid.