diff options
author | mh <mh@immerda.ch> | 2010-10-09 22:28:15 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-10-09 22:28:15 +0200 |
commit | 13056a8f97a026da7168fa8a34ca4ca0d84ed6ce (patch) | |
tree | bfd863efd553bd5ab1c36079b7f95c4a1b722d3b /manifests/vhost/file.pp | |
parent | 5725fb0ecf08906c1dc4b146969f0e4d63baad73 (diff) |
only manage file parts if the file should actually be present
Diffstat (limited to 'manifests/vhost/file.pp')
-rw-r--r-- | manifests/vhost/file.pp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/vhost/file.pp b/manifests/vhost/file.pp index c4d5be6..aaca0c4 100644 --- a/manifests/vhost/file.pp +++ b/manifests/vhost/file.pp @@ -125,10 +125,14 @@ define apache::vhost::file( } file{$real_htpasswd_path: ensure => $ensure, + } + if ($ensure!='absent') { + File[$real_htpasswd_path]{ source => [ "puppet:///modules/site-apache/htpasswds/$fqdn/$name", "puppet:///modules/site-apache/htpasswds/$apache_cluster_node/$name", "puppet:///modules/site-apache/htpasswds/$name" ], owner => root, group => 0, mode => 0644; + } } } } |