Skip to content

Only require password when used #1356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions manifests/server/db.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @summary Define for conveniently creating a role, database and assigning the correctpermissions.
#
# @param user User to create and assign access to the database upon creation. Mandatory.
# @param password Required Sets the password for the created user.
# @param user User to assign access to the database upon creation (will be created if not defined elsewhere). Mandatory.
# @param password Sets the password for the created user (if a user is created).
# @param comment Defines a comment to be stored about the database using the PostgreSQL COMMENT command.
# @param dbname Sets the name of the database to be created.
# @param encoding Overrides the character set during creation of the database.
@@ -13,7 +13,7 @@
# @param owner Sets a user as the owner of the database.
define postgresql::server::db (
$user,
Variant[String, Sensitive[String]] $password,
Optional[Variant[String, Sensitive[String]]] $password = undef,
$comment = undef,
$dbname = $title,
$encoding = $postgresql::server::encoding,