From 8b01ddba9c2d3c2be0c1326e644351a9f123efe7 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 6 Jul 2024 22:09:16 +1000 Subject: [PATCH] fix: cleanup simpleproxy - remove commented sections - remove $server from locations --- site/profiles/manifests/nginx/simpleproxy.pp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/site/profiles/manifests/nginx/simpleproxy.pp b/site/profiles/manifests/nginx/simpleproxy.pp index 29c1daf..c9f124e 100644 --- a/site/profiles/manifests/nginx/simpleproxy.pp +++ b/site/profiles/manifests/nginx/simpleproxy.pp @@ -99,21 +99,6 @@ class profiles::nginx::simpleproxy ( # merge the hashes conditionally $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 class { 'nginx': proxy_cache_path => { @@ -131,7 +116,7 @@ class profiles::nginx::simpleproxy ( # create nginx locations if $use_default_location == false { - create_resources('nginx::resource::location', $locations => {'server' => $nginx_vhost}) + create_resources('nginx::resource::location', $locations) } # manage selinux