aboutsummaryrefslogtreecommitdiffstats
path: root/modules/youri-check
diff options
context:
space:
mode:
Diffstat (limited to 'modules/youri-check')
-rw-r--r--modules/youri-check/manifests/init.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp
index 095aaae4..f3fc61a2 100644
--- a/modules/youri-check/manifests/init.pp
+++ b/modules/youri-check/manifests/init.pp
@@ -1,8 +1,10 @@
class youri-check {
- $location = "/var/www/youri-check"
- $vhost = "check.$domain"
+ class variable {
+ $location = "/var/www/youri-check"
+ $vhost = "check.$domain"
+ }
- class check {
+ class check inherits variable {
$user = 'youri'
$home = '/var/tmp/youri'
$outdir = "$home/www"
@@ -32,7 +34,7 @@ class youri-check {
}
}
- class website($vhost="$vhost", $location="$location") {
+ class website inherits variable {
file { "$location":
ensure => directory,
owner => apache,