Commit b6baae16 by Morgan Robertson

Enable Mongo auth.

parent c80bb060
...@@ -31,6 +31,7 @@ MONGO_USERS: ...@@ -31,6 +31,7 @@ MONGO_USERS:
MONGO_CLUSTERED: false MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1 MONGO_BIND_IP: 127.0.0.1
MONGO_AUTH: true
MONGO_USE_SMALLFILES: true MONGO_USE_SMALLFILES: true
......
...@@ -38,9 +38,8 @@ replSet = {{ mongo_repl_set }} ...@@ -38,9 +38,8 @@ replSet = {{ mongo_repl_set }}
# Enables periodic logging of CPU utilization and I/O wait # Enables periodic logging of CPU utilization and I/O wait
#cpu = true #cpu = true
# Turn on/off security. Off is currently the default # Turn on/off security. On is currently the default
#noauth = true auth = {{ MONGO_AUTH | ternary("true", "false") }}
#auth = true
# Verbose logging output. # Verbose logging output.
#verbose = true #verbose = true
......
...@@ -42,6 +42,7 @@ MONGO_USERS: ...@@ -42,6 +42,7 @@ MONGO_USERS:
MONGO_CLUSTERED: false MONGO_CLUSTERED: false
MONGO_BIND_IP: 127.0.0.1 MONGO_BIND_IP: 127.0.0.1
MONGO_REPL_SET: "rs0" MONGO_REPL_SET: "rs0"
MONGO_AUTH: true
# Cluster member configuration # Cluster member configuration
# Fed directly into mongodb_replica_set module # Fed directly into mongodb_replica_set module
......
...@@ -34,6 +34,7 @@ replication: ...@@ -34,6 +34,7 @@ replication:
replSetName: {{ MONGO_REPL_SET }} replSetName: {{ MONGO_REPL_SET }}
security: security:
authorization: {{ MONGO_AUTH | ternary("enabled", "disabled") }}
keyFile: {{ mongo_key_file }} keyFile: {{ mongo_key_file }}
{% endif %} {% 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