fix: cleanup simpleproxy
- remove commented sections - remove $server from locations
This commit is contained in:
parent
d1dd12a091
commit
8b01ddba9c
@ -99,21 +99,6 @@ class profiles::nginx::simpleproxy (
|
|||||||
# merge the hashes conditionally
|
# merge the hashes conditionally
|
||||||
$nginx_parameters = merge($defaults, $extras_hash)
|
$nginx_parameters = merge($defaults, $extras_hash)
|
||||||
|
|
||||||
## manage cache for nginx
|
|
||||||
#file {'/var/cache/nginx/cache':
|
|
||||||
# ensure => 'directory',
|
|
||||||
# owner => 'nginx',
|
|
||||||
# group => 'root',
|
|
||||||
# mode => '0700',
|
|
||||||
#}
|
|
||||||
|
|
||||||
#file {'/var/cache/nginx/cache_temp':
|
|
||||||
# ensure => 'directory',
|
|
||||||
# owner => 'nginx',
|
|
||||||
# group => 'root',
|
|
||||||
# mode => '0700',
|
|
||||||
#}
|
|
||||||
|
|
||||||
# manage the nginx class
|
# manage the nginx class
|
||||||
class { 'nginx':
|
class { 'nginx':
|
||||||
proxy_cache_path => {
|
proxy_cache_path => {
|
||||||
@ -131,7 +116,7 @@ class profiles::nginx::simpleproxy (
|
|||||||
|
|
||||||
# create nginx locations
|
# create nginx locations
|
||||||
if $use_default_location == false {
|
if $use_default_location == false {
|
||||||
create_resources('nginx::resource::location', $locations => {'server' => $nginx_vhost})
|
create_resources('nginx::resource::location', $locations)
|
||||||
}
|
}
|
||||||
|
|
||||||
# manage selinux
|
# manage selinux
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user