From 24aa153210c0c1fedbff72a23ca420294f9d9cb7 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 12 Feb 2011 14:03:27 +0000 Subject: - use variable for the blog domain and location (less stuff to change later ) --- modules/blog/manifests/init.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/blog/manifests') diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index f444fa21..1b602b3a 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -30,11 +30,14 @@ class blog { include apache::mod_php include mysql - apache::vhost_other_app { "blog-test.$domain": + + $blog_location = "/var/www/html/blog.$domain" + $blog_domain = "blog-test.$domain" + apache::vhost_other_app { "$blog_domain": vhost_file => "blog/blogs_vhosts.conf", } - file { "/var/www/html/blog.$domain": + file { "$blog_location": ensure => directory, owner => blog, # FIXME is the group created by puppet ? -- cgit v1.2.1