2014-06-04 15:03:58 +00:00
|
|
|
---
|
|
|
|
|
2015-01-07 11:31:53 +00:00
|
|
|
mongodb_package: mongodb-org
|
2018-02-16 04:53:36 +00:00
|
|
|
mongodb_version: "3.6"
|
2016-04-17 13:43:00 +00:00
|
|
|
mongodb_apt_keyserver: keyserver.ubuntu.com
|
2017-06-16 11:58:39 +00:00
|
|
|
mongodb_apt_key_id:
|
|
|
|
"3.2": "EA312927"
|
|
|
|
"3.4": "0C49F3730359A14518585931BC711F9BA15703C6"
|
2018-02-16 04:53:36 +00:00
|
|
|
"3.6": "2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5"
|
2017-06-16 11:58:39 +00:00
|
|
|
|
2016-04-17 13:43:00 +00:00
|
|
|
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
|
2018-06-27 12:02:17 +00:00
|
|
|
mongodb_pymongo_pip_version: 3.6.1
|
2016-04-17 13:43:00 +00:00
|
|
|
|
|
|
|
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
|
2015-04-06 21:37:34 +00:00
|
|
|
mongodb_manage_service: true
|
2015-04-02 19:48:03 +00:00
|
|
|
|
2018-12-18 09:50:38 +00:00
|
|
|
mongodb_disable_transparent_hugepages: false
|
|
|
|
|
2016-04-27 04:51:53 +00:00
|
|
|
mongodb_user: "{{ 'mongod' if ('RedHat' == ansible_os_family) else 'mongodb' }}"
|
2015-05-09 21:15:49 +00:00
|
|
|
mongodb_uid:
|
|
|
|
mongodb_gid:
|
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
|
|
|
|
2016-04-17 13:43:00 +00:00
|
|
|
## net Options
|
|
|
|
mongodb_net_bindip: 127.0.0.1 # Comma separated list of ip addresses to listen on
|
|
|
|
mongodb_net_http_enabled: false # Enable http interface
|
|
|
|
mongodb_net_ipv6: false # Enable IPv6 support (disabled by default)
|
|
|
|
mongodb_net_maxconns: 65536 # Max number of simultaneous connections
|
|
|
|
mongodb_net_port: 27017 # Specify port number
|
2018-08-23 18:55:22 +00:00
|
|
|
mongodb_net_ssl: disabled # Enable or disable ssl connections
|
|
|
|
mongodb_net_ssl_mode: # Set the ssl mode (RequireSSL / PreferSSL / AllowSSL / disabled)
|
|
|
|
mongodb_net_ssl_pemfile: # Location of the pemfile to use for ssl
|
2016-04-17 13:43:00 +00:00
|
|
|
|
|
|
|
## processManagement Options
|
2016-04-27 06:55:54 +00:00
|
|
|
# Fork server process
|
|
|
|
# Enabled by default for RedHat as the init scripts assume forking is enabled.
|
|
|
|
mongodb_processmanagement_fork: "{{ 'RedHat' == ansible_os_family }}"
|
2016-04-17 13:43:00 +00:00
|
|
|
|
|
|
|
## security Options
|
|
|
|
# Disable or enable security. Possible values: 'disabled', 'enabled'
|
|
|
|
mongodb_security_authorization: "disabled"
|
|
|
|
mongodb_security_keyfile: /etc/mongodb-keyfile # Specify path to keyfile with password for inter-process authentication
|
|
|
|
|
|
|
|
## storage Options
|
|
|
|
mongodb_storage_dbpath: /data/db # Directory for datafiles
|
2018-09-11 08:01:53 +00:00
|
|
|
mongodb_storage_dirperdb: false # Use one directory per DB
|
|
|
|
|
2016-04-17 13:43:00 +00:00
|
|
|
# The storage engine for the mongod database. Available values:
|
|
|
|
# 'mmapv1', 'wiredTiger'
|
2018-02-16 04:53:36 +00:00
|
|
|
mongodb_storage_engine: "wiredTiger"
|
2016-04-17 13:43:00 +00:00
|
|
|
# mmapv1 specific options
|
|
|
|
mongodb_storage_quota_enforced: false # Limits each database to a certain number of files
|
|
|
|
mongodb_storage_quota_maxfiles: 8 # Number of quota files per DB
|
|
|
|
mongodb_storage_smallfiles: false # Very useful for non-data nodes
|
|
|
|
|
|
|
|
mongodb_storage_journal_enabled: true # Enable journaling
|
|
|
|
mongodb_storage_prealloc: true # Enable data file preallocation
|
|
|
|
|
|
|
|
## systemLog Options
|
|
|
|
## The destination to which MongoDB sends all log output. Specify either 'file' or 'syslog'.
|
|
|
|
## If you specify 'file', you must also specify mongodb_systemlog_path.
|
|
|
|
mongodb_systemlog_destination: "file"
|
|
|
|
mongodb_systemlog_logappend: true # Append to logpath instead of over-writing
|
2018-03-08 13:38:26 +00:00
|
|
|
mongodb_systemlog_logrotate: "rename" # Logrotation behavior
|
2016-04-17 13:43:00 +00:00
|
|
|
mongodb_systemlog_path: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
|
2014-12-19 14:39:09 +00:00
|
|
|
|
2016-04-17 13:43:00 +00:00
|
|
|
## replication Options
|
|
|
|
mongodb_replication_replset: # Enable replication <setname>[/<optionalseedhostlist>]
|
|
|
|
mongodb_replication_replindexprefetch: "all" # specify index prefetching behavior (if secondary) [none|_id_only|all]
|
|
|
|
mongodb_replication_oplogsize: 1024 # specifies a maximum size in megabytes for the replication operation log
|
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
|
|
|
|
2015-02-09 12:38:18 +00:00
|
|
|
# password for inter-process authentication
|
2015-02-10 07:45:52 +00:00
|
|
|
# please regenerate this file on production environment with command 'openssl rand -base64 741'
|
2015-02-09 12:38:18 +00:00
|
|
|
mongodb_keyfile_content: |
|
|
|
|
8pYcxvCqoe89kcp33KuTtKVf5MoHGEFjTnudrq5BosvWRoIxLowmdjrmUpVfAivh
|
|
|
|
CHjqM6w0zVBytAxH1lW+7teMYe6eDn2S/O/1YlRRiW57bWU3zjliW3VdguJar5i9
|
|
|
|
Z+1a8lI+0S9pWynbv9+Ao0aXFjSJYVxAm/w7DJbVRGcPhsPmExiSBDw8szfQ8PAU
|
|
|
|
2hwRl7nqPZZMMR+uQThg/zV9rOzHJmkqZtsO4UJSilG9euLCYrzW2hdoPuCrEDhu
|
|
|
|
Vsi5+nwAgYR9dP2oWkmGN1dwRe0ixSIM2UzFgpaXZaMOG6VztmFrlVXh8oFDRGM0
|
|
|
|
cGrFHcnGF7oUGfWnI2Cekngk64dHA2qD7WxXPbQ/svn9EfTY5aPw5lXzKA87Ds8p
|
|
|
|
KHVFUYvmA6wVsxb/riGLwc+XZlb6M9gqHn1XSpsnYRjF6UzfRcRR2WyCxLZELaqu
|
|
|
|
iKxLKB5FYqMBH7Sqg3qBCtE53vZ7T1nefq5RFzmykviYP63Uhu/A2EQatrMnaFPl
|
|
|
|
TTG5CaPjob45CBSyMrheYRWKqxdWN93BTgiTW7p0U6RB0/OCUbsVX6IG3I9N8Uqt
|
|
|
|
l8Kc+7aOmtUqFkwo8w30prIOjStMrokxNsuK9KTUiPu2cj7gwYQ574vV3hQvQPAr
|
|
|
|
hhb9ohKr0zoPQt31iTj0FDkJzPepeuzqeq8F51HB56RZKpXdRTfY8G6OaOT68cV5
|
|
|
|
vP1O6T/okFKrl41FQ3CyYN5eRHyRTK99zTytrjoP2EbtIZ18z+bg/angRHYNzbgk
|
|
|
|
lc3jpiGzs1ZWHD0nxOmHCMhU4usEcFbV6FlOxzlwrsEhHkeiununlCsNHatiDgzp
|
|
|
|
ZWLnP/mXKV992/Jhu0Z577DHlh+3JIYx0PceB9yzACJ8MNARHF7QpBkhtuGMGZpF
|
|
|
|
T+c73exupZFxItXs1Bnhe3djgE3MKKyYvxNUIbcTJoe7nhVMrwO/7lBSpVLvC4p3
|
|
|
|
wR700U0LDaGGQpslGtiE56SemgoP
|
2015-02-09 12:39:32 +00:00
|
|
|
|
2015-02-10 07:45:52 +00:00
|
|
|
# names and passwords for administrative users
|
|
|
|
mongodb_user_admin_name: siteUserAdmin
|
2015-02-09 12:39:32 +00:00
|
|
|
mongodb_user_admin_password: passw0rd
|
2015-02-10 07:45:52 +00:00
|
|
|
|
|
|
|
mongodb_root_admin_name: siteRootAdmin
|
2015-02-09 12:39:32 +00:00
|
|
|
mongodb_root_admin_password: passw0rd
|
2015-11-17 06:14:41 +00:00
|
|
|
|
2018-02-16 04:53:36 +00:00
|
|
|
mongodb_root_backup_name: backupuser
|
|
|
|
mongodb_root_backup_password: passw0rd
|
2018-01-09 11:41:48 +00:00
|
|
|
|
|
|
|
# setParameter config
|
|
|
|
mongodb_set_parameters:
|