diff options
Diffstat (limited to 'manifests')
-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; + } } } } |