|
#TODO: |
|
|
# - add the user 'planet' to the 'apache' group (usermod -a -G apache blog) |
|
1 |
class planet { |
class planet { |
2 |
user { "planet": |
user { "planet": |
3 |
groups => apache, |
groups => apache, |
4 |
comment => "This user is used for planet.mageia.org", |
comment => "This user is used for planet", |
5 |
ensure => present, |
ensure => present, |
6 |
managehome => true, |
managehome => true, |
7 |
} |
} |
11 |
vhost_file => "planet/02_planet_vhosts.conf", |
vhost_file => "planet/02_planet_vhosts.conf", |
12 |
} |
} |
13 |
|
|
14 |
file { "/var/www/html/planet.mageia.org": |
file { "/var/www/html/planet.$domain": |
15 |
ensure => directory, |
ensure => directory, |
16 |
owner => planet, |
owner => planet, |
17 |
group => planet, |
group => planet, |