From 7804868bbc1b52368d69047b636298a45bcbf715 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Thu, 3 May 2012 07:16:49 +0100 Subject: [PATCH] some ordering Signed-off-by: Stephen Gran --- modules/apache2/manifests/module.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/apache2/manifests/module.pp b/modules/apache2/manifests/module.pp index 17d4a71a0..ff26ea636 100644 --- a/modules/apache2/manifests/module.pp +++ b/modules/apache2/manifests/module.pp @@ -3,13 +3,15 @@ define apache2::module ($ensure = present) { present: { exec { "/usr/sbin/a2enmod ${name}": creates => "/etc/apache2/mods-enabled/${name}.load", + require => Package['apache2'], notify => Service['apache2'] } } absent: { exec { "/usr/sbin/a2dismod ${name}": - onlyif => "test -L /etc/apache2/mods-enabled/${name}.load", - notify => Service['apache2'] + onlyif => "test -L /etc/apache2/mods-enabled/${name}.load", + require => Package['apache2'], + notify => Service['apache2'] } } default: { fail ( "Unknown ensure value: '$ensure'" ) } -- 2.20.1