a37eaa053b
The code to grant permissions databases and their objects has been abstracted to `postgresql::grant` and is used by both `postgresql::database_grant` and `postgresql::table_grant`
20 lines
424 B
Puppet
20 lines
424 B
Puppet
# Resource postgresql::table_grant
|
|
define postgresql::table_grant(
|
|
$privilege,
|
|
$table,
|
|
$db,
|
|
$role,
|
|
$psql_db = undef,
|
|
$psql_user = undef
|
|
) {
|
|
include postgresql::params
|
|
postgresql::grant { "table:${name}":
|
|
role => $role,
|
|
db => $db,
|
|
privilege => $privilege,
|
|
object_type => 'TABLE',
|
|
object_name => $table,
|
|
psql_db => $psql_db,
|
|
psql_user => $psql_user,
|
|
}
|
|
}
|