diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-06 23:01:23 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-06 23:01:23 -0200 |
commit | aaf6dec83004d076d78cd8c04e2aeeb22195a3dd (patch) | |
tree | 787c1a540f20e8cf1873136c1c4408d0d0792d0d /manifests | |
parent | 1e5db440c4fa2412b0346b3f1d4b6714943cff16 (diff) | |
download | puppet-apache-aaf6dec83004d076d78cd8c04e2aeeb22195a3dd.tar.gz puppet-apache-aaf6dec83004d076d78cd8c04e2aeeb22195a3dd.tar.bz2 |
Enhancing absent behavior
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 6d8e5d4..ac1f934 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -175,6 +175,11 @@ class apache { && [ ${apache2_sites}-enabled/$vhost -ef ${apache2_sites}-available/$vhost ]'", notify => Exec["reload-apache2"], } + + file { "${apache2_sites}-enabled/$vhost": + ensure => absent, + notify => Exec["reload-apache2"], + } } default: { err ("Unknown ensure value: '$ensure'") } } |