postgresql_user
The postgresql_user
module allows you to create a user in a PostgreSQL server.
Arguments
name
: a string that contains the name of the user to be created.password
: a string that contains the password for the user.role_attr_flags
: a string that contains the role attribute flags for the user.action
: a string that specifies the action to be taken on the user. (default iscreate
. Supported actions:create
,drop
)
Usage Example
local task = {
name = "Create a user in PostgreSQL",
komandan.modules.postgresql_user({
name = "myuser",
password = "mysecretpassword",
role_attr_flags = "REPLICATION",
})
}
komandan.komando(host, task)