21 lines
424 B
ObjectPascal
21 lines
424 B
ObjectPascal
|
# 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,
|
||
|
}
|
||
|
}
|