From ddf98ea2573abfdce439a03916ac6a7bfe204bdd Mon Sep 17 00:00:00 2001 From: furest Date: Sat, 23 Nov 2024 00:04:31 +0100 Subject: [PATCH] make linter happy again --- modules/akvorado/manifests/init.pp | 6 +++--- modules/apache/manifests/proxy.pp | 2 +- modules/apache/templates/proxy.conf.erb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/akvorado/manifests/init.pp b/modules/akvorado/manifests/init.pp index eafbf444..cdfae488 100644 --- a/modules/akvorado/manifests/init.pp +++ b/modules/akvorado/manifests/init.pp @@ -239,9 +239,9 @@ backend => 'http://localhost:8081/api/v0/inlet/', } apache::proxy { '3_akvorado-console': - url => '/', - backend => 'http://localhost:8082/', - allowEncodedSlashes => true, + url => '/', + backend => 'http://localhost:8082/', + allow_encoded_slashes => true, } service { 'akvorado-orch': ensure => running, diff --git a/modules/apache/manifests/proxy.pp b/modules/apache/manifests/proxy.pp index 00e6408e..16f832dc 100644 --- a/modules/apache/manifests/proxy.pp +++ b/modules/apache/manifests/proxy.pp @@ -3,7 +3,7 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file # -define apache::proxy($url, $backend, $allowEncodedSlashes = false) { +define apache::proxy($url, $backend, $allow_encoded_slashes = false) { exec { "apache_proxy_reload_${name}": command => '/usr/sbin/apachectl graceful', refreshonly => true, diff --git a/modules/apache/templates/proxy.conf.erb b/modules/apache/templates/proxy.conf.erb index 78709786..763f23e7 100644 --- a/modules/apache/templates/proxy.conf.erb +++ b/modules/apache/templates/proxy.conf.erb @@ -5,7 +5,7 @@ ProxyPass <%= @url %> <%= @backend %> RequestHeader set X-Proxy-REMOTE-USER %{REMOTE_USER}s ProxyPreserveHost on -<% if @allowEncodedSlashes == true -%> +<% if @allow_encoded_slashes == true -%> AllowEncodedSlashes On <% end -%>