Skip to content

Commit 6026878

Browse files
committed
Fixed: create database admin only if the service_ensure is true.
Create database `admin` only if the `$service_ensure` is `true` or `'running'`.
1 parent b676878 commit 6026878

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/server.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
anchor { 'mongodb::server::end': }
117117
}
118118

119-
if $create_admin {
119+
if $create_admin and ($service_ensure == 'running' or $service_ensure == true) {
120120
validate_string($admin_password)
121121

122122
mongodb::db { 'admin':

0 commit comments

Comments
 (0)