From 3c04971d911a23ee49937ffe47578f5c77bd1f39 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 15 Oct 2023 18:58:50 +0100 Subject: [PATCH] Stop trying to URI encode passwords --- cookbooks/postgresql/recipes/default.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cookbooks/postgresql/recipes/default.rb b/cookbooks/postgresql/recipes/default.rb index d2c94d1ed..1fe903022 100644 --- a/cookbooks/postgresql/recipes/default.rb +++ b/cookbooks/postgresql/recipes/default.rb @@ -17,8 +17,6 @@ # limitations under the License. # -require "uri" - include_recipe "apt::postgresql" include_recipe "munin" include_recipe "prometheus" @@ -141,7 +139,7 @@ clusters.each do |name, details| --collector.stat_wal_receiver --collector.statio_user_indexes ] - environment "DATA_SOURCE_NAME" => "postgres:///#{prometheus_database}?host=/run/postgresql&port=#{details[:port]}&user=prometheus&password=#{URI.encode_www_form_component(passwords['prometheus'])}" + environment "DATA_SOURCE_NAME" => "postgres:///#{prometheus_database}?host=/run/postgresql&port=#{details[:port]}&user=prometheus&password=#{passwords['prometheus']}" restrict_address_families "AF_UNIX" subscribes :restart, "template[/etc/prometheus/exporters/postgres_queries.yml]" end -- 2.45.1