diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-19 16:04:58 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-19 16:04:58 -0200 |
commit | 2c16c4788cc352a79c548fd9164d65264ae55d22 (patch) | |
tree | 536f777142d2117405a005f44936b6b0d55ab002 /manifests/module.pp | |
parent | 35690aec253a16ca0c48f4fb249ce940dc5f48e0 (diff) | |
download | puppet-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.pp | 8 |
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"], } } |