Skip to content

Commit 7a68bad

Browse files
authored
Merge pull request #421 from ekohl/db-types
Set types for mongodb::db
2 parents fa383f6 + e8e64c3 commit 7a68bad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

manifests/db.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# tries (default: 10) - The maximum amount of two second tries to wait MongoDB startup.
1313
#
1414
define mongodb::db (
15-
$user,
16-
$db_name = $name,
17-
$password_hash = false,
18-
$password = false,
19-
$roles = ['dbAdmin'],
20-
$tries = 10,
15+
String $user,
16+
String $db_name = $name,
17+
Optional[String] $password_hash = undef,
18+
Optional[String] $password = undef,
19+
Array[String] $roles = ['dbAdmin'],
20+
Integer[0] $tries = 10,
2121
) {
2222

2323
mongodb_database { $db_name:

0 commit comments

Comments
 (0)