Skip to content

Commit fbe5824

Browse files
authored
Merge branch 'main' into main
2 parents 0e39485 + 121a455 commit fbe5824

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

manifests/server.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
# Specify the type of encryption set for the password in pg_hba_conf,
101101
# this value is usefull if you want to start enforcing scram-sha-256, but give users transition time.
102102
# @param roles Specifies a hash from which to generate postgresql::server::role resources.
103+
# @param grants Specifies a hash from which to generate postgresql::server::grant resources.
103104
# @param config_entries Specifies a hash from which to generate postgresql::server::config_entry resources.
104105
# @param pg_hba_rules Specifies a hash from which to generate postgresql::server::pg_hba_rule resources.
105106
#
@@ -185,6 +186,7 @@
185186
Optional[String] $extra_systemd_config = $postgresql::params::extra_systemd_config,
186187

187188
Hash[String, Hash] $roles = {},
189+
Hash[String[1], Hash] $grants = {},
188190
Hash[String, Any] $config_entries = {},
189191
Postgresql::Pg_hba_rules $pg_hba_rules = {},
190192

@@ -217,6 +219,12 @@
217219
}
218220
}
219221

222+
$grants.each |$grantname, $grant| {
223+
postgresql::server::grant { $grantname:
224+
* => $grant,
225+
}
226+
}
227+
220228
$config_entries.each |$entry, $value| {
221229
postgresql::server::config_entry { $entry:
222230
ensure => bool2str($value =~ Undef, 'absent', 'present'),

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"name": "puppetlabs/concat",
25-
"version_requirement": ">= 4.1.0 < 10.0.0"
25+
"version_requirement": ">= 4.1.0 < 11.0.0"
2626
}
2727
],
2828
"operatingsystem_support": [

0 commit comments

Comments
 (0)