1 |
class youri-check { |
class youri-check { |
2 |
$location = "/var/www/youri-check" |
class variable { |
3 |
$vhost = "check.$domain" |
$location = "/var/www/youri-check" |
4 |
|
$vhost = "check.$domain" |
5 |
|
} |
6 |
|
|
7 |
class check { |
class check inherits variable { |
8 |
$user = 'youri' |
$user = 'youri' |
9 |
$home = '/var/tmp/youri' |
$home = '/var/tmp/youri' |
10 |
$outdir = "$home/www" |
$outdir = "$home/www" |
34 |
} |
} |
35 |
} |
} |
36 |
|
|
37 |
class website($vhost="$vhost", $location="$location") { |
class website inherits variable { |
38 |
file { "$location": |
file { "$location": |
39 |
ensure => directory, |
ensure => directory, |
40 |
owner => apache, |
owner => apache, |