diff options
author | Nicolas Vigier <boklm@mageia.org> | 2010-11-18 15:55:02 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2010-11-18 15:55:02 +0000 |
commit | 45b3010e5d57baacdd7970d2ddbb0684bdd23f08 (patch) | |
tree | 15fb9988378fea46440cbf1be360ee3391c60b55 | |
parent | f4034b1ebd35dc656e3542193f556a72687c61ca (diff) | |
download | puppet-45b3010e5d57baacdd7970d2ddbb0684bdd23f08.tar puppet-45b3010e5d57baacdd7970d2ddbb0684bdd23f08.tar.gz puppet-45b3010e5d57baacdd7970d2ddbb0684bdd23f08.tar.bz2 puppet-45b3010e5d57baacdd7970d2ddbb0684bdd23f08.tar.xz puppet-45b3010e5d57baacdd7970d2ddbb0684bdd23f08.zip |
add vhost_other_app and webapp_other defines
-rw-r--r-- | modules/apache/manifests/init.pp | 25 |
1 files changed, 25 insertions, 0 deletions
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) + } + } } |