aboutsummaryrefslogtreecommitdiffstats
path: root/modules/planet/manifests/init.pp
blob: 89239f6963453a32b149c436c2fd370309f23871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class planet {

    user { "planet":
	groups => apache,
	comment => "User running cronjob and deploying planet software",
	ensure => present,
	managehome => true,
	home => "/var/lib/planet",
    }

    $planet_location = "/var/www/html/planet.$domain"
    $planet_domain = "planet.$domain"
	
    include apache::mod_php
    include apache::mod_deflate
    apache::vhost_base { "$planet_domain":
	location => $planet_location,
        content => template('planet/planet_vhosts.conf')
    }

    file { "deploy_new-planet":
        path => "/usr/local/bin/deploy_new-planet.sh",
        ensure => present,
        owner => root,
        group => root,
        mode => 755,
        content => template("planet/deploy_new-planet.sh")
    }

    file { "/var/www/html/planet.$domain":
	ensure => directory,
	owner => planet,
	group => planet,
	mode => 644,
    }

    package { ['php-iconv']:
        ensure => installed
    }
}