Skip to content

Commit 8a7b099

Browse files
authored
Merge pull request #240 from pcheliniy/patch-1
Fixed: create database admin only if service_ensure is true.
2 parents 9e2cf80 + 6026878 commit 8a7b099

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
@@ -127,7 +127,7 @@
127127
-> anchor { 'mongodb::server::end': }
128128
}
129129

130-
if $create_admin {
130+
if $create_admin and ($service_ensure == 'running' or $service_ensure == true) {
131131
validate_string($admin_password)
132132

133133
mongodb::db { 'admin':

0 commit comments

Comments
 (0)