Commit a2f91176 authored by Paschalis Korosoglou's avatar Paschalis Korosoglou
Browse files

Make mongo bind interfaces more than one

parent fd80401e
---
mongo_bind_interface: 127.0.0.1
mongo_bind_interfaces: 127.0.0.1
cert_path: /etc/grid-security/hostcert.pem
key_path: /etc/grid-security/hostkey.pem
......
---
mongo_bind_interface: 0.0.0.0
mongo_bind_interfaces: 0.0.0.0
cert_path: /etc/pki/tls/certs/localhost.crt
key_path: /etc/pki/tls/private/localhost.key
......
---
# Comma separated list of IPs mongo service should bind to
mongo_bind_interfaces: 127.0.0.1,192.168.0.33
......@@ -7,11 +7,11 @@
- mongodb-org-3.0.7
- mongodb-org-server-3.0.7
- name: Bind mongod processes to an interface
- name: Bind mongod processes to one or more interfaces
lineinfile: >
dest=/etc/mongod.conf
regexp="\ \ bindIp"
line=' bindIp: {{ mongo_bind_interface }}'
line=' bindIp: {{ mongo_bind_interfaces }}'
state=present
backup=yes
notify: restart mongo
......
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