2014-06-04 15:03:58 +00:00
|
|
|
---
|
|
|
|
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_enabled: true
|
2015-01-07 11:31:53 +00:00
|
|
|
|
|
|
|
mongodb_package: mongodb-org
|
2015-01-05 13:37:28 +00:00
|
|
|
|
|
|
|
mongodb_additional_packages:
|
2015-01-07 11:31:53 +00:00
|
|
|
- python-selinux
|
|
|
|
- python-pymongo
|
2014-06-04 15:03:58 +00:00
|
|
|
|
2014-12-19 14:39:09 +00:00
|
|
|
mongodb_user: mongodb
|
2015-01-23 09:43:11 +00:00
|
|
|
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"
|
2014-08-25 14:10:18 +00:00
|
|
|
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_conf_auth: "no" # Run with security
|
2014-12-19 14:39:09 +00:00
|
|
|
mongodb_conf_bind_ip: 127.0.0.1 # Comma separated list of ip addresses to listen on
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_conf_cpu: "yes" # Periodically show cpu and iowait utilization
|
2014-12-19 14:39:09 +00:00
|
|
|
mongodb_conf_dbpath: /data/db # Directory for datafiles
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_conf_fork: "no" # Fork server process
|
|
|
|
mongodb_conf_httpinterface: "no" # Enable http interface
|
|
|
|
mongodb_conf_ipv6: "no" # Enable IPv6 support (disabled by default)
|
|
|
|
mongodb_conf_journal: "no" # Enable journaling
|
|
|
|
mongodb_conf_logappend: "yes" # Append to logpath instead of over-writing
|
2015-01-05 13:37:28 +00:00
|
|
|
mongodb_conf_logpath: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
|
2014-12-19 14:39:09 +00:00
|
|
|
mongodb_conf_maxConns: 1000000 # Max number of simultaneous connections
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_conf_noprealloc: "no" # Disable data file preallocation
|
|
|
|
mongodb_conf_noscripting: "no" # Disable scripting engine
|
|
|
|
mongodb_conf_notablescan: "no" # Do not allow table scans
|
2014-12-19 14:39:09 +00:00
|
|
|
mongodb_conf_port: 27017 # Specify port number
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_conf_quota: "no" # Limits each database to a certain number of files
|
2014-12-19 14:39:09 +00:00
|
|
|
mongodb_conf_quotaFiles: 8 # Number of quota files
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_conf_syslog: "no" # Log to system's syslog facility instead of file
|
2014-12-19 14:39:09 +00:00
|
|
|
|
|
|
|
# Replica set options:
|
|
|
|
mongodb_conf_replSet: # Enable replication <setname>[/<optionalseedhostlist>]
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_conf_replIndexPrefetch: "all" # specify index prefetching behavior (if secondary) [none|_id_only|all]
|
2014-12-19 14:39:09 +00:00
|
|
|
|
2014-12-26 15:36:50 +00:00
|
|
|
mongodb_shell: {} # Define mongo shell commands to run
|
2014-12-26 15:32:50 +00:00
|
|
|
# Syntax: mongodb_shell:
|
|
|
|
# dbname:
|
|
|
|
# - db.setProfilingLevel(1, 50)
|
2015-01-05 13:37:28 +00:00
|
|
|
|
2014-12-26 15:32:50 +00:00
|
|
|
|
2014-12-19 14:39:09 +00:00
|
|
|
# MMS Agent
|
|
|
|
mongodb_mms_agent_pkg: https://mms.mongodb.com/download/agent/automation/mongodb-mms-automation-agent-manager_1.4.2.783-1_amd64.deb
|
|
|
|
mongodb_mms_group_id: ""
|
|
|
|
mongodb_mms_api_key: ""
|
|
|
|
mongodb_mms_base_url: https://mms.mongodb.com
|
2014-07-10 16:07:35 +00:00
|
|
|
|
|
|
|
# Log rotation
|
2015-02-09 12:31:59 +00:00
|
|
|
mongodb_logrotate: true # Rotate mongodb logs.
|
2014-07-10 16:07:35 +00:00
|
|
|
mongodb_logrotate_options:
|
|
|
|
- compress
|
|
|
|
- copytruncate
|
|
|
|
- daily
|
|
|
|
- dateext
|
|
|
|
- rotate 7
|
|
|
|
- size 10M
|