Use template for Nginx in pypimirror module.

Fixes bug 999242.

No longer make Nginx default site config file a
static file. Instead, use a template that correctly
sets the document root.

Change-Id: Ib4a21319e78dc905cb33514a1371d7719be0380a
This commit is contained in:
David Shrewsbury 2012-05-14 16:25:40 -04:00
parent f212c0895d
commit d29981584c
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ class pypimirror ( $base_url,
file { "/etc/nginx/sites-available/default":
ensure => present,
source => "puppet:///modules/pypimirror/default",
content => template('pypimirror/nginx_default.erb'),
replace => true,
owner => "root",
group => "root",

View File

@ -4,6 +4,6 @@ server {
index index.html index.htm;
location / {
root /usr/local/pypimirror;
root <%= mirror_file_path %>;
}
}