kolla-ansible/ansible/roles/mongodb/templates/mongodb.conf.j2
Hui Kang 3ae0063944 Add an ansible role for mongodb
Change-Id: Ia6ac371845d1f2b545406d096b35a6d5f68be5f6
Implements: blueprint ansible-mongodb
2016-01-27 10:48:34 -05:00

16 lines
345 B
Django/Jinja

# mongodb.conf
# Where to store the data.
dbpath = /var/lib/mongodb
# where to log
logpath = /var/log/mongodb/mongodb.log
logappend = true
bind_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
port = {{ mongodb_port }}
# Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
journal = true