diff --git a/apache/manifests/debian.pp b/apache/manifests/debian.pp index 981fd3b..9d13e68 100644 --- a/apache/manifests/debian.pp +++ b/apache/manifests/debian.pp @@ -334,11 +334,12 @@ define apache::debian::a2enmod($source="", $content="") { if $source or $content { file { "/etc/apache2/mods-available/${name}.conf": - mode => 0644, - owner => root, - group => root, - notify => Service["apache2"], - before => Exec["a2enmod-${name}"], + mode => 0644, + owner => root, + group => root, + notify => Service["apache2"], + before => Exec["a2enmod-${name}"], + require => Package["httpd"], } if $source { File["/etc/apache2/mods-available/${name}.conf"] {