1 |
dams |
911 |
class planet { |
2 |
dams |
1093 |
|
3 |
dams |
993 |
user { "planet": |
4 |
dams |
1002 |
groups => apache, |
5 |
misc |
1022 |
comment => "User running cronjob and deploying planet software", |
6 |
dams |
1000 |
ensure => present, |
7 |
|
|
managehome => true, |
8 |
dams |
1093 |
home => "/var/lib/planet", |
9 |
dams |
993 |
} |
10 |
dams |
1000 |
|
11 |
dams |
1093 |
$planet_location = "/var/www/html/planet.$domain" |
12 |
|
|
$planet_domain = "planet.$domain" |
13 |
|
|
|
14 |
dams |
909 |
include apache::mod_php |
15 |
dams |
1020 |
include apache::mod_deflate |
16 |
dams |
1093 |
apache::vhost_base { "$planet_domain": |
17 |
|
|
location => $planet_location, |
18 |
dams |
1094 |
content => template('planet/planet_vhosts.conf') |
19 |
dams |
909 |
} |
20 |
|
|
|
21 |
dams |
1108 |
file { "deploy_new-planet": |
22 |
|
|
path => "/usr/local/bin/deploy_new-planet.sh", |
23 |
|
|
ensure => present, |
24 |
|
|
owner => root, |
25 |
|
|
group => root, |
26 |
|
|
mode => 755, |
27 |
|
|
content => template("planet/deploy_new-planet.sh") |
28 |
|
|
} |
29 |
|
|
|
30 |
misc |
1003 |
file { "/var/www/html/planet.$domain": |
31 |
dams |
909 |
ensure => directory, |
32 |
dams |
1002 |
owner => planet, |
33 |
|
|
group => planet, |
34 |
dams |
909 |
mode => 644, |
35 |
|
|
} |
36 |
dams |
1018 |
|
37 |
dams |
1020 |
package { ['php-iconv']: |
38 |
dams |
1018 |
ensure => installed |
39 |
|
|
} |
40 |
dams |
909 |
} |