summaryrefslogtreecommitdiffstats
path: root/manifests/init.pp
blob: b62ee798b2d39275e1e7155dae9b9fca3ef56db1 (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
import "git"

class django::server {
    package { ["httpd", "Django", "mod_python"]:
        ensure      => installed,
    }

    service { "httpd":
        ensure      => running,
        require     => Package["httpd"],
    }

    file { "/etc/httpd/conf.d/django.conf":
	ensure	=> present,
	owner	=> "root",
	group	=> "root",
	mode	=> 0644,
	source	=> "puppet:///django/django.conf",
	require => [Package["httpd"],Package["mod_python"]],
	notify	=> Service["httpd"],
    }

    git::repo { "django-code-repo":
	src 	=> "git://$gitserver/pub/git/sd/intranet/everest_django",
	dst	=> "/usr/local/everest_django",
	require	=> [Package["httpd"], Package["Django"]],
    }
	
	
}