ansible-role-mongodb/templates/mongod.conf.j2

30 lines
1.1 KiB
Plaintext
Raw Normal View History

# {{ ansible_managed }}
2014-06-04 15:03:58 +00:00
2015-02-17 13:16:14 +00:00
auth = {{ mongodb_conf_auth|to_nice_json }}
2014-12-11 19:09:31 +00:00
bind_ip = {{ mongodb_conf_bind_ip }}
2015-02-17 13:16:14 +00:00
cpu = {{ mongodb_conf_cpu|to_nice_json }}
2014-12-11 19:09:31 +00:00
dbpath = {{ mongodb_conf_dbpath }}
2015-02-17 13:16:14 +00:00
fork = {{ mongodb_conf_fork|to_nice_json }}
httpinterface = {{ mongodb_conf_httpinterface|to_nice_json }}
ipv6 = {{ mongodb_conf_ipv6|to_nice_json }}
journal = {{ mongodb_conf_journal|to_nice_json }}
logappend = {{ mongodb_conf_logappend|to_nice_json }}
2014-12-11 19:09:31 +00:00
logpath = {{ mongodb_conf_logpath }}
2014-12-19 14:39:09 +00:00
maxConns = {{ mongodb_conf_maxConns }}
2015-02-17 13:16:14 +00:00
noprealloc = {{ mongodb_conf_noprealloc|to_nice_json }}
noscripting = {{ mongodb_conf_noscripting|to_nice_json }}
notablescan = {{ mongodb_conf_notablescan|to_nice_json }}
2014-12-11 19:09:31 +00:00
port = {{ mongodb_conf_port }}
2015-02-17 13:16:14 +00:00
quota = {{ mongodb_conf_quota|to_nice_json }}
2014-12-19 14:39:09 +00:00
quotaFiles = {{ mongodb_conf_quotaFiles }}
2015-02-17 13:16:14 +00:00
syslog = {{ mongodb_conf_syslog|to_nice_json }}
smallfiles = {{ mongodb_conf_smallfiles|to_nice_json }}
2014-12-19 14:39:09 +00:00
{% if mongodb_conf_replSet %}
# Replica set options:
replSet = {{ mongodb_conf_replSet }}
replIndexPrefetch = {{ mongodb_conf_replIndexPrefetch }}
oplogSize = {{ mongodb_conf_oplogSize }}
keyFile = {{ mongodb_conf_keyFile }}
2014-12-19 14:39:09 +00:00
{% endif %}