1 |
class planet { |
class planet { |
2 |
|
|
3 |
user { "planet": |
user { "planet": |
4 |
groups => apache, |
groups => apache, |
5 |
comment => "User running cronjob and deploying planet software", |
comment => "User running cronjob and deploying planet software", |
6 |
ensure => present, |
ensure => present, |
7 |
managehome => true, |
managehome => true, |
8 |
|
home => "/var/lib/planet", |
9 |
} |
} |
10 |
|
|
11 |
|
$planet_location = "/var/www/html/planet.$domain" |
12 |
|
$planet_domain = "planet.$domain" |
13 |
|
|
14 |
include apache::mod_php |
include apache::mod_php |
15 |
include apache::mod_deflate |
include apache::mod_deflate |
16 |
apache::vhost_other_app { "planet.$domain": |
apache::vhost_base { "$planet_domain": |
17 |
vhost_file => "planet/02_planet_vhosts.conf", |
location => $planet_location, |
18 |
|
content => template('planet/02_planet_vhosts.conf') |
19 |
} |
} |
20 |
|
|
21 |
file { "/var/www/html/planet.$domain": |
file { "/var/www/html/planet.$domain": |