aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-05-15 18:12:43 +0000
committerNicolas Vigier <boklm@mageia.org>2011-05-15 18:12:43 +0000
commit4750d79fdb4e66dfa59213c543527a2515388ec1 (patch)
treed33982dde9187dbeac901f7c4c69323518c8a24f /modules
parentc15e184f898b361b05d6148ad9d456a66df8e1b1 (diff)
downloadpuppet-4750d79fdb4e66dfa59213c543527a2515388ec1.tar
puppet-4750d79fdb4e66dfa59213c543527a2515388ec1.tar.gz
puppet-4750d79fdb4e66dfa59213c543527a2515388ec1.tar.bz2
puppet-4750d79fdb4e66dfa59213c543527a2515388ec1.tar.xz
puppet-4750d79fdb4e66dfa59213c543527a2515388ec1.zip
define blog_location and blog_domain in base
Diffstat (limited to 'modules')
-rw-r--r--modules/blog/manifests/init.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp
index 76c7e87f..ce4140b3 100644
--- a/modules/blog/manifests/init.pp
+++ b/modules/blog/manifests/init.pp
@@ -1,6 +1,9 @@
class blog {
class base {
+ $blog_location = "/var/www/vhosts/blog.$domain"
+ $blog_domain = "blog.$domain"
+
user { "blog":
groups => apache,
comment => "Mageia Blog",
@@ -33,9 +36,6 @@ class blog {
include apache::mod_php
- $blog_location = "/var/www/vhosts/blog.$domain"
- $blog_domain = "blog.$domain"
-
apache::vhost_base { "$blog_domain":
location => $blog_location,
content => template('blog/blogs_vhosts.conf'),