summaryrefslogtreecommitdiffstats
path: root/manifests/init.pp
blob: 3a149e5c8f95206294e3d13962bb6f0a2ec0dc42 (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
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"], Exec["Checkout django example"]],
	notify	=> Service["httpd"],
    }

    exec { "Checkout django example":
        command     => "/usr/bin/git clone git://${everestrepo}/pub/git/code/everest_django /usr/local/everest_django",
    }
}