Change the default for `inherit` from `false` to `true` to match PostgreSQL.
This commit is contained in:
parent
b576a3eda1
commit
e9dc92c18d
|
@ -2,9 +2,9 @@ package postgresql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hashicorp/errwrap"
|
"github.com/hashicorp/errwrap"
|
||||||
|
@ -99,7 +99,7 @@ func resourcePostgreSQLRole() *schema.Resource {
|
||||||
roleInheritAttr: {
|
roleInheritAttr: {
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: false,
|
Default: true,
|
||||||
Description: `Determine whether a role "inherits" the privileges of roles it is a member of`,
|
Description: `Determine whether a role "inherits" the privileges of roles it is a member of`,
|
||||||
},
|
},
|
||||||
roleLoginAttr: {
|
roleLoginAttr: {
|
||||||
|
|
|
@ -47,7 +47,7 @@ resource "postgresql_role" "my_replication_role" {
|
||||||
is `false`.
|
is `false`.
|
||||||
|
|
||||||
* `inherit` - (Optional) Defines whether a role "inherits" the privileges of
|
* `inherit` - (Optional) Defines whether a role "inherits" the privileges of
|
||||||
roles it is a member of. Default value is `false`.
|
roles it is a member of. Default value is `true`.
|
||||||
|
|
||||||
* `login` - (Optional) Defines whether role is allowed to log in. Roles without
|
* `login` - (Optional) Defines whether role is allowed to log in. Roles without
|
||||||
this attribute are useful for managing database privileges, but are not users
|
this attribute are useful for managing database privileges, but are not users
|
||||||
|
|
Loading…
Reference in New Issue