diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-11-08 13:59:55 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-11-08 13:59:55 -0200 |
commit | d509548b5df862e9d16c0f4df01c5d78bc2e0644 (patch) | |
tree | 2a2600b090817c4c9b24c3960f511fac6607faa6 /manifests | |
parent | 5253b1335ef5974fb31b00faec70738e43a9857b (diff) | |
download | puppet-apache-d509548b5df862e9d16c0f4df01c5d78bc2e0644.tar.gz puppet-apache-d509548b5df862e9d16c0f4df01c5d78bc2e0644.tar.bz2 |
Minor change
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index f8dd454..202a753 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -103,11 +103,6 @@ class apache { case $ensure { 'present': { - exec { "/usr/sbin/a2ensite $name": - unless => "/bin/sh -c '[ -L ${apache2_sites}-enabled/$name ] \ - && [ ${apache2_sites}-enabled/$name -ef ${apache2_sites}-available/$name ]'", - notify => Exec["reload-apache2"], - } if !defined(File["${docroot}"]) { file { "${docroot}": ensure => directory, @@ -116,6 +111,11 @@ class apache { mode => 0755, } } + exec { "/usr/sbin/a2ensite $name": + unless => "/bin/sh -c '[ -L ${apache2_sites}-enabled/$name ] \ + && [ ${apache2_sites}-enabled/$name -ef ${apache2_sites}-available/$name ]'", + notify => Exec["reload-apache2"], + } } 'absent': { exec { "/usr/sbin/a2dissite $name": |