Enable modules before starting Apache

If Puppet decides to order resources in such a way that Apache is
started before the modules the vhost is configured to utilize are
enabled, the service will fail complaining of a syntax error/missing
module. Set Apache's modules to instead be enabled before Apache is
started to avoid this failure scenario.

Change-Id: Ida3e963d9044bbb5e0ec4c9e465a104e7d97fa2b
This commit is contained in:
Jeremy Stanley 2017-12-01 20:09:33 +00:00
parent fde5fe0d62
commit 2704eca15a
1 changed files with 2 additions and 0 deletions

View File

@ -19,9 +19,11 @@ class mailman(
}
httpd_mod { 'rewrite':
ensure => present,
before => Service['httpd'],
}
httpd_mod { 'cgid':
ensure => present,
before => Service['httpd'],
}
file { '/var/www/index.html':