add placeholder
This commit is contained in:
@@ -6,13 +6,17 @@
|
|||||||
# @param [String] pl_bouncer_db_name db name for the bouncer rule
|
# @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_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_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 (
|
define confdroid_postgresql::bouncer::bouncer_rule (
|
||||||
|
|
||||||
String $pl_bouncer_db_name = undef,
|
String $pl_bouncer_db_name = undef,
|
||||||
String $pl_bouncer_host = '127.0.0.1',
|
String $pl_bouncer_host = '127.0.0.1',
|
||||||
String $pl_bouncer_port = '5432',
|
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
|
$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}":
|
concat::fragment { "pl_bouncer_rule_${name}":
|
||||||
target => $pl_bouncer_ini_file,
|
target => $pl_bouncer_ini_file,
|
||||||
content => template($pl_bouncer_ini_erb),
|
content => template($pl_bouncer_ini_erb),
|
||||||
order => $pl_bounce_order,
|
order => $pl_bouncer_order,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user