From 45b3010e5d57baacdd7970d2ddbb0684bdd23f08 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 18 Nov 2010 15:55:02 +0000 Subject: add vhost_other_app and webapp_other defines --- modules/apache/manifests/init.pp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'modules/apache/manifests/init.pp') diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 7ca64922..e8f7a575 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -128,4 +128,29 @@ class apache { content => template("apache/django.wsgi") } } + + define vhost_other_app($vhost_file) { + file { "$name.conf": + path => "/etc/httpd/conf/vhosts.d/$name.conf", + ensure => "present", + owner => root, + group => root, + mode => 644, + notify => Service['apache'], + content => template($vhost_file) + } + } + + define webapp_other($webapp_file) { + $webappname = $name + file { "webapp_$name.conf": + path => "/etc/httpd/conf/webapps.d/$webappname.conf", + ensure => "present", + owner => root, + group => root, + mode => 644, + notify => Service['apache'], + content => template($webapp_file) + } + } } -- cgit v1.2.1