summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-11-06 18:10:16 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-11-06 18:10:16 -0200
commitdc55b9e430c4ed371750128af15d480627748f45 (patch)
tree62067ef645f30fd3036a186515f31dc2fafec98b
parentf51372db663672cb6bb09bf8fb3bc9a44afb957b (diff)
downloadpuppet-apache-dc55b9e430c4ed371750128af15d480627748f45.tar.gz
puppet-apache-dc55b9e430c4ed371750128af15d480627748f45.tar.bz2
Rollback from last change
-rw-r--r--manifests/init.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index a93b3bb..1c78723 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -127,14 +127,14 @@ class apache {
# You can add a custom require (string) if the module depends on
# packages that aren't part of the default apache2 package. Because of
# the package dependencies, apache2 will automagically be included.
- define module($ensure = 'present', $require = 'Package[apache2]') {
+ define module($ensure = 'present', $require = 'apache2') {
case $ensure {
- 'present' : {
+ 'present': {
exec { "/usr/sbin/a2enmod $name":
unless => "/bin/sh -c '[ -L ${apache2_mods}-enabled/${name}.load ] \
&& [ ${apache2_mods}-enabled/${name}.load -ef ${apache2_mods}-available/${name}.load ]'",
notify => Exec["force-reload-apache2"],
- require => $require,
+ require => Package[$require],
}
}
'absent': {