aboutsummaryrefslogtreecommitdiffstats
path: root/modules/planet/manifests/init.pp
blob: 519935d9eed0bf8c0ffe02bcdd9e6b76ad340e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#TODO: 
# - add the creation of the user 'planet' in puppet
# - add the user 'planet' to the 'apache' group (usermod -a -G apache blog)
class planet {
    user { "planet":
	group => 'apache',
	commend => 'This user was created by Puppet',
	ensure => 'present',
	managed_home => 'false',
    }
    include apache::mod_php

    apache::vhost_other_app { "planet.$domain":
        vhost_file => "planet/02_planet_vhosts.conf",
    }

    file { "/var/www/html/planet.mageia.org":
	ensure => directory,
	owner => apache,
	group => blog,
	mode => 644,
    }
}