1 |
class planet { |
2 |
|
3 |
user { "planet": |
4 |
groups => apache, |
5 |
comment => "User running cronjob and deploying planet software", |
6 |
ensure => present, |
7 |
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 |
15 |
include apache::mod_deflate |
16 |
apache::vhost_base { "$planet_domain": |
17 |
location => $planet_location, |
18 |
content => template('planet/02_planet_vhosts.conf') |
19 |
} |
20 |
|
21 |
file { "/var/www/html/planet.$domain": |
22 |
ensure => directory, |
23 |
owner => planet, |
24 |
group => planet, |
25 |
mode => 644, |
26 |
} |
27 |
|
28 |
package { ['php-iconv']: |
29 |
ensure => installed |
30 |
} |
31 |
} |