library/roles/mongodb-org-3.2: mongo now binds to localhost by default. Fix the template and the default variables.

This commit is contained in:
Andrea Dell'Amico 2016-12-23 15:33:06 +01:00
parent 0762dcdc23
commit aab6313083
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,9 @@ mongodb_install_conf: True
mongodb_upgrade_from_older_version: False
# Set to 'latest' if you want to get the latest available package
mongodb_pkg_state: present
mongodb_start_server: 'no'
mongodb_start_server: 'yes'
mongodb_tcp_port: 27017
mongo_bind_ip: 0.0.0.0
mongodb_http_interface: 'false'
mongodb_http_port: 28017
mongodb_user: mongodb
@ -31,7 +32,6 @@ mongodb_systemlog_logappend: 'true'
mongodb_systemlog_logrotate: reopen
mongodb_cluster_enabled: False
mongodb_replicaset: storagedev
mongodb_replica_keyfile: '{{ mongodb_dbpath }}/replica_keyfile'

View File

@ -23,7 +23,7 @@ systemLog:
# network interfaces
net:
port: {{ mongodb_tcp_port }}
# bindIp: 127.0.0.1
bindIp: {{ mongo_bind_ip }}
http:
enabled: {{ mongodb_http_interface }}
JSONPEnabled: {{ mongodb_http_interface }}