summaryrefslogtreecommitdiff
path: root/manifests/module.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-19 16:04:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-19 16:04:58 -0200
commit2c16c4788cc352a79c548fd9164d65264ae55d22 (patch)
tree536f777142d2117405a005f44936b6b0d55ab002 /manifests/module.pp
parent35690aec253a16ca0c48f4fb249ce940dc5f48e0 (diff)
downloadpuppet-apache-2c16c4788cc352a79c548fd9164d65264ae55d22.tar.gz
puppet-apache-2c16c4788cc352a79c548fd9164d65264ae55d22.tar.bz2
Upgrading for 2.7 compatibility
Diffstat (limited to 'manifests/module.pp')
-rw-r--r--manifests/module.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/module.pp b/manifests/module.pp
index 8a36432..64a692c 100644
--- a/manifests/module.pp
+++ b/manifests/module.pp
@@ -8,15 +8,15 @@ define apache::module($ensure = 'present') {
case $ensure {
'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 ]'",
+ unless => "/bin/sh -c '[ -L ${apache::mods}-enabled/${name}.load ] \
+ && [ ${apache::mods}-enabled/${name}.load -ef ${apache::mods}-available/${name}.load ]'",
notify => Exec["force-reload-apache2"],
}
}
'absent': {
exec { "/usr/sbin/a2dismod $name":
- onlyif => "/bin/sh -c '[ -L ${apache2_mods}-enabled/${name}.load ] \
- && [ ${apache2_mods}-enabled/${name}.load -ef ${apache2_mods}-available/${name}.load ]'",
+ onlyif => "/bin/sh -c '[ -L ${apache::mods}-enabled/${name}.load ] \
+ && [ ${apache::mods}-enabled/${name}.load -ef ${apache::mods}-available/${name}.load ]'",
notify => Exec["force-reload-apache2"],
}
}