34 |
include apache::mod_php |
include apache::mod_php |
35 |
|
|
36 |
$blog_location = "/var/www/html/blog.$domain" |
$blog_location = "/var/www/html/blog.$domain" |
37 |
$blog_domain = "blog-test.$domain" |
$blog_domain = "blog.$domain" |
38 |
|
|
39 |
apache::vhost_base { "$blog_domain": |
apache::vhost_base { "$blog_domain": |
40 |
location => $blog_location, |
location => $blog_location, |
50 |
|
|
51 |
file { "$blog_location": |
file { "$blog_location": |
52 |
ensure => directory, |
ensure => directory, |
53 |
owner => blog, |
owner => apache, |
54 |
group => apache, |
group => apache, |
55 |
mode => 644, |
mode => 644, |
56 |
} |
} |