Merge "Use template for Nginx in pypimirror module."
This commit is contained in:
commit
2400d7de84
@ -99,7 +99,7 @@ class pypimirror ( $base_url,
|
|||||||
|
|
||||||
file { "/etc/nginx/sites-available/default":
|
file { "/etc/nginx/sites-available/default":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => "puppet:///modules/pypimirror/default",
|
content => template('pypimirror/nginx_default.erb'),
|
||||||
replace => true,
|
replace => true,
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
|
@ -4,6 +4,6 @@ server {
|
|||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/local/pypimirror;
|
root <%= mirror_file_path %>;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user