summaryrefslogtreecommitdiffstats
path: root/manifests/init.pp
blob: 0a68a4822f22d403bfc72a251d5d2268cbe4a9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"],
    }
	
	
}