From a4e64977303b0318a83e30569271c91bf27b7fd7 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 6 Nov 2010 17:39:16 +0000 Subject: - refactor the directory name for apache vhost config --- modules/apache/manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/apache') 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, -- cgit v1.2.1