From: Stephen Gran Date: Thu, 3 May 2012 06:16:49 +0000 (+0100) Subject: some ordering X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7804868bbc1b52368d69047b636298a45bcbf715;p=mirror%2Fdsa-puppet.git some ordering Signed-off-by: Stephen Gran --- 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'" ) }