Skip to content
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

Workaround for apxs-loaded modules #444

Merged
merged 1 commit into from
Nov 7, 2013

Conversation

ptomulik
Copy link
Contributor

@ptomulik ptomulik commented Nov 7, 2013

On some OSes (FreeBSD) apxs tool is used to put LoadModule directives
into httpd.conf during apache package (and apache modules)
insallation/reinstallation. The apxs expects some LoadModule directives
to be already present in httpd.conf (they may be commented-out) in order
to decide where to put its own directives.

This PR puts fake LoadModule directive (commented out) to httpd.conf.
The $apxs_workaround boolean parameter in apache class decides, whether
to use this workaround or not. This is used on FreeBSD, where apxs is
used by ports package provider (and perhaps all other). Without this,
the apache installation/reinstallation/deinstallation as well as
installation of additional modules would fail.

This PR was created in order to split #342 into smaller parts to make
review process easier, see
#342 (comment)

On some OSes (FreeBSD) apxs tool is used to put LoadModule directives
into httpd.conf during apache package (and apache modules)
insallation/reinstallation. The apxs expects some LoadModule directives
to be already present in httpd.conf (they may be commented-out) in order
to decide where to put its own directives.

This PR puts fake LoadModule directive (commented out) to httpd.conf.
The $apxs_workaround boolean parameter in apache class decides, whether
to use this workaround or not. This is used on FreeBSD, where apxs is
used by ports package provider (and perhaps all other). Without this,
the apache installation/reinstallation/deinstallation as well as
installation of additional modules would fail.

This PR was created in order to split puppetlabs#342 into smaller parts to make
review process easier, see
puppetlabs#342 (comment)
@ptomulik
Copy link
Contributor Author

ptomulik commented Nov 7, 2013

This problem does not appear when the apache is installed for the first time, but would appear when the httpd.conf is already installed on the target OS and we change MPM, or install additional modules (at least on FreeBSD).

apenney pushed a commit that referenced this pull request Nov 7, 2013
Workaround for apxs-loaded modules
@apenney apenney merged commit 37352fc into puppetlabs:master Nov 7, 2013
@ptomulik ptomulik deleted the apxs_workaround branch November 8, 2013 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants