Skip to content

Commit 4d8927f

Browse files
committed
Merge pull request #44 from davidcaste/davidcaste-replicaset-without-authentication
Fix replicaset config without authentication
2 parents c996d6e + 4b2899b commit 4d8927f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/mongod.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ smallfiles = {{ mongodb_conf_smallfiles|to_nice_json }}
2727
replSet = {{ mongodb_conf_replSet }}
2828
replIndexPrefetch = {{ mongodb_conf_replIndexPrefetch }}
2929
oplogSize = {{ mongodb_conf_oplogSize }}
30+
{% endif %}
31+
{% if mongodb_conf_replSet and mongodb_conf_auth %}
3032
keyFile = {{ mongodb_conf_keyFile }}
3133
{% endif %}

0 commit comments

Comments
 (0)