Commit b6baae16 by Morgan Robertson

Enable Mongo auth.

parent c80bb060
......@@ -31,6 +31,7 @@ MONGO_USERS:
MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1
MONGO_AUTH: true
MONGO_USE_SMALLFILES: true
......
......@@ -38,9 +38,8 @@ replSet = {{ mongo_repl_set }}
# Enables periodic logging of CPU utilization and I/O wait
#cpu = true
# Turn on/off security. Off is currently the default
#noauth = true
#auth = true
# Turn on/off security. On is currently the default
auth = {{ MONGO_AUTH | ternary("true", "false") }}
# Verbose logging output.
#verbose = true
......
......@@ -42,6 +42,7 @@ MONGO_USERS:
MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1
MONGO_REPL_SET: "rs0"
MONGO_AUTH: true
# Cluster member configuration
# Fed directly into mongodb_replica_set module
......
......@@ -34,6 +34,7 @@ replication:
replSetName: {{ MONGO_REPL_SET }}
security:
authorization: {{ MONGO_AUTH | ternary("enabled", "disabled") }}
keyFile: {{ mongo_key_file }}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment