13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'manifests/server/pg_ident_rule.pp', line 13
define postgresql::server::pg_ident_rule (
String[1] $map_name,
String[1] $system_username,
String[1] $database_username,
String[1] $description = 'none',
String[1] $order = '150',
# Needed for testing primarily, support for multiple files is not really
# working.
Variant[String[1], Stdlib::Absolutepath] $target = $postgresql::server::pg_ident_conf_path
) {
if $postgresql::server::manage_pg_ident_conf == false {
fail('postgresql::server::manage_pg_ident_conf has been disabled, so this resource is now unused and redundant, either enable that option or remove this resource from your manifests') # lint:ignore:140chars
} else {
# Create a rule fragment
$fragname = "pg_ident_rule_${name}"
concat::fragment { $fragname:
target => $target,
content => epp('postgresql/pg_ident_rule.conf.epp', {
name => $name,
description => $description,
order => $order,
map_name => $map_name,
system_username => $system_username,
database_username => $database_username,
}
),
order => $order,
}
}
}
|