diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-06 17:39:16 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-06 17:39:16 +0000 |
commit | a4e64977303b0318a83e30569271c91bf27b7fd7 (patch) | |
tree | ec551d5376d29789031a690e434b765437abe8ac /modules/apache/manifests | |
parent | 6b37ca99fe5443b9b1dc39356d2ae16c7cc52e10 (diff) | |
download | puppet-a4e64977303b0318a83e30569271c91bf27b7fd7.tar puppet-a4e64977303b0318a83e30569271c91bf27b7fd7.tar.gz puppet-a4e64977303b0318a83e30569271c91bf27b7fd7.tar.bz2 puppet-a4e64977303b0318a83e30569271c91bf27b7fd7.tar.xz puppet-a4e64977303b0318a83e30569271c91bf27b7fd7.zip |
- refactor the directory name for apache vhost config
Diffstat (limited to 'modules/apache/manifests')
-rw-r--r-- | modules/apache/manifests/init.pp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 403948a0..6b8f7bef 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -1,5 +1,7 @@ class apache { + $vhost_dir = "/etc/httpd/conf/vhosts.d" + class base { package { "apache-mpm-prefork": alias => apache, @@ -56,7 +58,7 @@ class apache { define vhost_redirect_ssl() { file { "redirect_ssl_$name.conf": - path => "/etc/httpd/conf/vhosts.d/redirect_ssl_$name.conf", + path => "$vhost_dir/redirect_ssl_$name.conf", ensure => "present", owner => root, group => root, @@ -71,7 +73,7 @@ class apache { include apache::mod_fastcgi file { "$name.conf": - path => "/etc/httpd/conf/vhosts.d/$name.conf", + path => "$vhost_dir/$name.conf", ensure => "present", owner => root, group => root, |