File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 77# @param psql_user Sets the OS user to run psql.
88# @param port Port to use when connecting.
99# @param connect_settings Specifies a hash of environment variables used when connecting to a remote server.
10+ # @param with_admin_option Specifies if the role should be granted with admin option.
1011define postgresql::server::grant_role (
1112 String[1] $group ,
1213 String[1] $role = $name,
1516 $psql_user = $postgresql::server::user,
1617 $port = $postgresql::server::port,
1718 $connect_settings = $postgresql::server::default_connect_settings,
19+ $with_admin_option = false ,
1820) {
1921 case $ensure {
2022 ' present' : {
21- $command = " GRANT \" ${group} \" TO \" ${role} \" "
23+ $with_admin_option_sql = $with_admin_option ? { true => ' WITH ADMIN OPTION' , default => ' ' }
24+ $command = " GRANT \" ${group} \" TO \" ${role} \" ${with_admin_option_sql} "
2225 $unless_comp = ' ='
2326 }
2427 ' absent' : {
You can’t perform that action at this time.
0 commit comments