From 5f1d2fcc1efd2020c46ae685a668906e84d77a17 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 9 Jan 2011 11:15:08 +0000 Subject: add vhost_simple, for handling simple checkout ( php, static website ) --- modules/apache/manifests/init.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules/apache/manifests') diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index 407e2ca2..c98e2234 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -164,6 +164,19 @@ class apache { } } + define vhost_simple($location) { + include apache::base + file { "$name.conf": + path => "/etc/httpd/conf/vhosts.d/$name.conf", + ensure => "present", + owner => root, + group => root, + mode => 644, + notify => Service['apache'], + content => template("apache/vhost_simple.conf") + } + } + define webapp_other($webapp_file) { include apache::base $webappname = $name -- cgit v1.2.1