kolla-ansible/ansible/roles/mongodb/templates/mongodb.conf.j2
Jeffrey Zhang 066173bec0 Implement mongodb replication set cluster
Closes-Bug: #1605457
Change-Id: I1a8e746f79f4dfcc5a43e736c3461b316db3f593
2016-08-20 17:30:29 +00:00

18 lines
417 B
Django/Jinja

systemLog:
destination: file
logAppend: true
path: /var/log/kolla/mongodb/mongodb.log
storage:
dbPath: /var/lib/mongodb
# Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
journal:
enabled: true
net:
bindIp: {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
port: {{ mongodb_port }}
replication:
replSetName: {{ mongodb_replication_set_name }}