[Mageia-sysadm] [181] - refactor the directory name for apache vhost config

root at mageia.org root at mageia.org
Sat Nov 6 18:39:17 CET 2010


Revision: 181
Author:   misc
Date:     2010-11-06 18:39:16 +0100 (Sat, 06 Nov 2010)
Log Message:
-----------
- refactor the directory name for apache vhost config

Modified Paths:
--------------
    puppet/modules/apache/manifests/init.pp

Modified: puppet/modules/apache/manifests/init.pp
===================================================================
--- puppet/modules/apache/manifests/init.pp	2010-11-06 12:20:34 UTC (rev 180)
+++ puppet/modules/apache/manifests/init.pp	2010-11-06 17:39:16 UTC (rev 181)
@@ -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 @@
 
     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 @@
         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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101106/a438e187/attachment-0001.html>


More information about the Mageia-sysadm mailing list