aboutsummaryrefslogtreecommitdiffstats
path: root/modules/blog/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-12 14:03:27 +0000
committerMichael Scherer <misc@mageia.org>2011-02-12 14:03:27 +0000
commit24aa153210c0c1fedbff72a23ca420294f9d9cb7 (patch)
treed93ef0b5507ed173cbdbde996e67373107650f27 /modules/blog/manifests
parent16035a11f7bcf2c7613a17895069010baf072ab9 (diff)
downloadpuppet-24aa153210c0c1fedbff72a23ca420294f9d9cb7.tar
puppet-24aa153210c0c1fedbff72a23ca420294f9d9cb7.tar.gz
puppet-24aa153210c0c1fedbff72a23ca420294f9d9cb7.tar.bz2
puppet-24aa153210c0c1fedbff72a23ca420294f9d9cb7.tar.xz
puppet-24aa153210c0c1fedbff72a23ca420294f9d9cb7.zip
- use variable for the blog domain and location (less stuff to change
later )
Diffstat (limited to 'modules/blog/manifests')
-rw-r--r--modules/blog/manifests/init.pp7
1 files changed, 5 insertions, 2 deletions
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 ?