2 |
# - add the user 'planet' to the 'apache' group (usermod -a -G apache blog) |
# - add the user 'planet' to the 'apache' group (usermod -a -G apache blog) |
3 |
class planet { |
class planet { |
4 |
user { "planet": |
user { "planet": |
5 |
group => apache, |
groups => apache, |
6 |
comment => "This user is used for planet.mageia.org", |
comment => "This user is used for planet.mageia.org", |
7 |
ensure => present, |
ensure => present, |
8 |
managehome => true, |
managehome => true, |
15 |
|
|
16 |
file { "/var/www/html/planet.mageia.org": |
file { "/var/www/html/planet.mageia.org": |
17 |
ensure => directory, |
ensure => directory, |
18 |
owner => apache, |
owner => planet, |
19 |
group => blog, |
group => planet, |
20 |
mode => 644, |
mode => 644, |
21 |
} |
} |
22 |
} |
} |