Skip to content

Commit b8bb1d7

Browse files
authored
Merge branch 'main' into dbcreation
2 parents 80bfac4 + 121a455 commit b8bb1d7

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
@@ -101,6 +101,7 @@
101101
# this value is usefull if you want to start enforcing scram-sha-256, but give users transition time.
102102
# @param databases Specifies a hash from which to generate postgresql::server::database resources.
103103
# @param roles Specifies a hash from which to generate postgresql::server::role resources.
104+
# @param grants Specifies a hash from which to generate postgresql::server::grant resources.
104105
# @param config_entries Specifies a hash from which to generate postgresql::server::config_entry resources.
105106
# @param pg_hba_rules Specifies a hash from which to generate postgresql::server::pg_hba_rule resources.
106107
#
@@ -187,6 +188,7 @@
187188

188189
Hash[String[1], Hash] $databases = {},
189190
Hash[String, Hash] $roles = {},
191+
Hash[String[1], Hash] $grants = {},
190192
Hash[String, Any] $config_entries = {},
191193
Postgresql::Pg_hba_rules $pg_hba_rules = {},
192194

@@ -225,6 +227,12 @@
225227
}
226228
}
227229

230+
$grants.each |$grantname, $grant| {
231+
postgresql::server::grant { $grantname:
232+
* => $grant,
233+
}
234+
}
235+
228236
$config_entries.each |$entry, $value| {
229237
postgresql::server::config_entry { $entry:
230238
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)