2016-01-27 16:21:18 +01:00
|
|
|
---
|
|
|
|
mongodb_install_from_external_repo: True
|
2018-05-09 18:19:43 +02:00
|
|
|
mongodb_repo_key: 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
|
|
|
|
mongodb_apt_repository: "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/{{ mongodb_version }} multiverse"
|
|
|
|
|
|
|
|
mongodb_old_repositories:
|
|
|
|
- "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/3.0 multiverse"
|
|
|
|
- "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen"
|
|
|
|
|
2016-01-27 16:21:18 +01:00
|
|
|
mongodb_install_packages: True
|
2017-02-21 18:36:12 +01:00
|
|
|
mongodb_install_server: True
|
2016-01-27 16:21:18 +01:00
|
|
|
mongodb_install_conf: True
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_upgrade_from_older_version: False
|
2018-05-09 18:19:43 +02:00
|
|
|
mongodb_version: 3.2
|
2016-01-27 16:21:18 +01:00
|
|
|
# Set to 'latest' if you want to get the latest available package
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_pkg_state: present
|
2017-02-21 18:36:12 +01:00
|
|
|
mongodb_server_pkgs:
|
|
|
|
- mongodb-org
|
|
|
|
- mongodb-org-mongos
|
|
|
|
- mongodb-org-server
|
|
|
|
- mongodb-org-shell
|
|
|
|
- mongodb-org-tools
|
|
|
|
|
|
|
|
mongodb_client_pkgs:
|
|
|
|
- mongodb-org-shell
|
|
|
|
|
2016-12-23 15:33:06 +01:00
|
|
|
mongodb_start_server: 'yes'
|
2016-01-27 16:21:18 +01:00
|
|
|
mongodb_tcp_port: 27017
|
2016-12-23 15:33:06 +01:00
|
|
|
mongo_bind_ip: 0.0.0.0
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_http_interface: 'false'
|
2016-01-27 16:21:18 +01:00
|
|
|
mongodb_http_port: 28017
|
|
|
|
mongodb_user: mongodb
|
|
|
|
mongodb_group: mongodb
|
|
|
|
mongodb_logdir: /var/log/mongodb
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_log_file: mongod.log
|
2016-01-27 16:21:18 +01:00
|
|
|
mongodb_logpath: '{{ mongodb_logdir }}/{{ mongodb_log_file }}'
|
|
|
|
mongodb_dbpath: /var/lib/mongodb
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_directoryperdb: 'false'
|
|
|
|
mongodb_conf_file: /etc/mongod.conf
|
|
|
|
mongodb_daemon: /usr/bin/mongod
|
|
|
|
mongod_additional_options: ""
|
2016-01-27 16:21:18 +01:00
|
|
|
mongodb_allowed_hosts:
|
|
|
|
- 127.0.0.1/8
|
|
|
|
- '{{ ansible_default_ipv4.address }}/32'
|
|
|
|
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_storage_engine: wiredTiger
|
|
|
|
|
2017-01-12 15:55:21 +01:00
|
|
|
# Do not change the default. We do not manage a logrotate configuration yet
|
|
|
|
mongodb_systemlog_external_logrotate: False
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_systemlog_destination: file
|
2017-01-12 15:55:21 +01:00
|
|
|
mongodb_log_retain_days: 7
|
|
|
|
# Not used anymore inside the template. Now we use different values based on mongodb_systemlog_external_logrotate
|
2016-03-25 18:04:45 +01:00
|
|
|
mongodb_systemlog_logappend: 'true'
|
|
|
|
mongodb_systemlog_logrotate: reopen
|
|
|
|
|
2016-01-27 16:21:18 +01:00
|
|
|
mongodb_cluster_enabled: False
|
|
|
|
mongodb_replicaset: storagedev
|
|
|
|
mongodb_replica_keyfile: '{{ mongodb_dbpath }}/replica_keyfile'
|
2016-03-21 18:38:45 +01:00
|
|
|
|
|
|
|
mongodb_ganglia_auth_enabled: False
|
|
|
|
mongodb_ganglia_db: admin
|
|
|
|
mongodb_ganglia_auth_mechanism: MONGODB-CR
|
|
|
|
# User and password are stored in the variables mongo_monitoring_u and mongo_monitoring_pwd
|