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

Manage mod dir before things that depend on mods #1388

Merged
merged 1 commit into from
Mar 9, 2016

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented Mar 4, 2016

On Ubuntu Trusty, the default mpm module is "event". In
puppetlabs-apache, the default mpm module is "worker". These can't both
be loaded at once. The apache puppet module takes care of this by
purging the mods-enabled directory. However, if we try to run a syntax
check before the directory is purged, it fails. The
apache::custom_config defined type contains an "syntax verification for
${name}" exec that can potentially run before the event mod is unloaded.

This patch ensures that the module purging occurs before syntax check
happens so that the puppet run is successful.

On Ubuntu Trusty, the default mpm module is "event". In
puppetlabs-apache, the default mpm module is "worker". These can't both
be loaded at once. The apache puppet module takes care of this by
purging the mods-enabled directory. However, if we try to run a syntax
check before the directory is purged, it fails. The
apache::custom_config defined type contains an "syntax verification for
${name}" exec that can potentially run before the event mod is unloaded.

This patch ensures that the module purging occurs before syntax check
happens so that the puppet run is successful.
hunner added a commit that referenced this pull request Mar 9, 2016
Manage mod dir before things that depend on mods
@hunner hunner merged commit 583aa5d into puppetlabs:master Mar 9, 2016
openstack-gerrit pushed a commit to openstack-infra/puppet-infracloud that referenced this pull request Apr 12, 2016
Since the infracloud::logs class was added, fresh installs suffer from
a bug causing puppet to fail trying to check apache syntax in the
middle of a run[1]. This patch is a temporary fix while we wait for the
upstream apache module to be fixed.

[1] puppetlabs/puppetlabs-apache#1388

Change-Id: I558756e4704d3b3e090db92edfeca6f75def1e04
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.

3 participants