From 958aed1ecf400fcd0303dbf708756567f5077a8c Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 18 Jan 2011 17:33:02 +0000 Subject: use apache::vhost_other_app --- modules/blog/manifests/init.pp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index 360d5432..672bb1fb 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -17,13 +17,8 @@ class blog { content => template("blog/check_new-blog-post.sh") } - file { "01_blogs_vhosts": - path => "/etc/httpd/conf/vhosts.d/01_blogs_vhosts.conf", - ensure => present, - owner => root, - group => root, - mode => 644, - content => template("blog/01_blogs_vhosts.conf") + apache::vhost_other_app { "blog.$domain": + vhost_file => "/etc/httpd/conf/vhosts.d/01_blogs_vhosts.conf", } file { "/var/lib/blog": -- cgit v1.2.1