We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06dd82 commit 19b9dccCopy full SHA for 19b9dcc
1 file changed
manifests/server.pp
@@ -430,16 +430,11 @@
430
Class['mongodb::server::service'] -> Class['mongodb::server::config'] -> Class['mongodb::server::install']
431
}
432
433
- $admin_password_unsensitive = if $admin_password =~ Sensitive[String] {
434
- $admin_password.unwrap
435
- } else {
436
- $admin_password
437
- }
438
if $create_admin and ($service_ensure == 'running' or $service_ensure == true) {
439
mongodb::db { 'admin':
440
user => $admin_username,
441
auth_mechanism => $admin_auth_mechanism,
442
- password => $admin_password_unsensitive,
+ password => $admin_password.unwrap,
443
password_hash => $admin_password_hash,
444
roles => $admin_roles,
445
update_password => $admin_update_password,
0 commit comments