From 2704eca15a23088d7cd7460a101893a8811fca66 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 1 Dec 2017 20:09:33 +0000 Subject: [PATCH] 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 --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index d5b3c86..5c0f0bf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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':