From 076ae79304c19987733024791d2cfe7e2a4bae86 Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Fri, 5 Dec 2025 14:58:45 +0100 Subject: [PATCH] add placeholder --- manifests/bouncer/bouncer_rule.pp | 8 ++++++-- templates/server/bouncer/bouncer_rule.erb | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/manifests/bouncer/bouncer_rule.pp b/manifests/bouncer/bouncer_rule.pp index 1914736..994dd68 100644 --- a/manifests/bouncer/bouncer_rule.pp +++ b/manifests/bouncer/bouncer_rule.pp @@ -6,13 +6,17 @@ # @param [String] pl_bouncer_db_name db name for the bouncer rule # @param [String] pl_bouncer_host IP of the db host to bounce to # @param [String] pl_bouncer_port port of the db host to bounce to +# @param [String] pl_bouncer_user user for the connection. Must be defined in +# userlist.txt +# @param [String] pl_bouncer_order the order in which the rule should appear ############################################################################## define confdroid_postgresql::bouncer::bouncer_rule ( String $pl_bouncer_db_name = undef, String $pl_bouncer_host = '127.0.0.1', String $pl_bouncer_port = '5432', - String $pl_bounce_order = undef, + String $pl_bouncer_user = undef, + String $pl_bouncer_order = undef, ) { $pl_bouncer_ini_file = $confdroid_postgresql::params::pl_bouncer_ini_file @@ -21,6 +25,6 @@ define confdroid_postgresql::bouncer::bouncer_rule ( concat::fragment { "pl_bouncer_rule_${name}": target => $pl_bouncer_ini_file, content => template($pl_bouncer_ini_erb), - order => $pl_bounce_order, + order => $pl_bouncer_order, } } diff --git a/templates/server/bouncer/bouncer_rule.erb b/templates/server/bouncer/bouncer_rule.erb index 017f8ff..7477485 100644 --- a/templates/server/bouncer/bouncer_rule.erb +++ b/templates/server/bouncer/bouncer_rule.erb @@ -1,2 +1 @@ -<%= @bouncer_db_name %> = host=<%= @bouncer_host %> port=<%= @db_host_port %> dbname=<%= @bouncer_db_name %> - +<%= @bouncer_db_name %> = host=<%= @bouncer_host %> port=<%= @db_host_port %> auth_user=<%= @pl_bouncer_user %> dbname=<%= @bouncer_db_name %>