2015-10-13 13:51:19 +02:00
|
|
|
---
|
|
|
|
mongodb_install_from_external_repo: True
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_repo_keys:
|
|
|
|
- 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
|
|
|
|
- EA312927
|
|
|
|
- 0C49F3730359A14518585931BC711F9BA15703C6
|
|
|
|
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"
|
|
|
|
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_install_packages: True
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_install_server: True
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_install_conf: True
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_upgrade_from_older_version: False
|
|
|
|
mongodb_version: 3.6
|
2015-11-19 18:10:24 +01:00
|
|
|
# Set to 'latest' if you want to get the latest available package
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_pkg_state: present
|
2019-03-29 13:54:38 +01:00
|
|
|
mongodb_server_pkgs_external_repo:
|
2018-09-12 12:25:02 +02:00
|
|
|
- mongodb-org
|
|
|
|
- mongodb-org-mongos
|
|
|
|
- mongodb-org-server
|
|
|
|
- mongodb-org-shell
|
|
|
|
- mongodb-org-tools
|
|
|
|
|
2019-03-29 13:54:38 +01:00
|
|
|
mongodb_client_pkgs_external_repo:
|
2018-09-12 12:25:02 +02:00
|
|
|
- mongodb-org-shell
|
|
|
|
|
2019-03-29 13:54:38 +01:00
|
|
|
mongodb_server_pkgs:
|
|
|
|
- mongodb
|
|
|
|
- mongodb-server
|
|
|
|
- mongo-tools
|
|
|
|
|
|
|
|
mongodb_client_pkgs:
|
|
|
|
- mongodb-clients
|
|
|
|
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_start_server: 'yes'
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_tcp_port: 27017
|
2018-09-12 12:25:02 +02:00
|
|
|
mongo_bind_ip: 0.0.0.0
|
|
|
|
mongodb_http_interface: 'false'
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_user: mongodb
|
|
|
|
mongodb_group: mongodb
|
|
|
|
mongodb_logdir: /var/log/mongodb
|
2016-03-24 15:41:14 +01:00
|
|
|
mongodb_log_file: mongod.log
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_logpath: '{{ mongodb_logdir }}/{{ mongodb_log_file }}'
|
|
|
|
mongodb_dbpath: /var/lib/mongodb
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_directoryperdb: 'false'
|
2016-03-24 15:41:14 +01:00
|
|
|
mongodb_conf_file: /etc/mongod.conf
|
|
|
|
mongodb_daemon: /usr/bin/mongod
|
|
|
|
mongod_additional_options: ""
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_allowed_hosts:
|
|
|
|
- 127.0.0.1/8
|
|
|
|
- '{{ ansible_default_ipv4.address }}/32'
|
|
|
|
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_storage_engine: wiredTiger
|
|
|
|
|
|
|
|
mongodb_ssl_enabled: False
|
|
|
|
mongodb_ssl_letsencrypt_managed: True
|
2018-09-20 14:57:53 +02:00
|
|
|
mongodb_ssl_letsencrypt_ca_dir: '{{ mongodb_ssl_cert_dir }}'
|
2018-10-01 15:41:54 +02:00
|
|
|
# This one contains both lets-encrypt-x3-cross-signed.pem.txt and DST_Root_CA_X3.crt
|
2018-09-19 17:41:37 +02:00
|
|
|
mongodb_ssl_letsencrypt_ca_filename: lets-encrypt-x3-cross-signed.pem
|
2018-09-12 12:25:02 +02:00
|
|
|
# Options: disabled, requireSSL, allowSSL, preferSSL
|
|
|
|
mongodb_ssl_mode: requireSSL
|
2018-09-19 17:41:37 +02:00
|
|
|
mongodb_ssl_cert_dir: /etc/pki/mongodb
|
|
|
|
mongodb_ssl_certkey_file: '{{ mongodb_ssl_cert_dir }}/mongodb.pem'
|
2018-09-26 16:41:33 +02:00
|
|
|
mongodb_ssl_CA_file: '{{ mongodb_ssl_letsencrypt_ca_dir }}/{{ mongodb_ssl_letsencrypt_ca_filename }}'
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_ssl_allowConnectionsWithoutCertificates: 'true'
|
|
|
|
mongodb_ssl_disabled_protocols: 'TLS1_0,TLS1_1'
|
|
|
|
|
|
|
|
# Do not change the default. We do not manage a logrotate configuration yet
|
2018-09-20 12:39:07 +02:00
|
|
|
mongodb_logrotate_management: True
|
2018-09-12 12:25:02 +02:00
|
|
|
mongodb_systemlog_external_logrotate: False
|
|
|
|
mongodb_systemlog_destination: file
|
|
|
|
mongodb_log_retain_days: 7
|
|
|
|
# Not used anymore inside the template. Now we use different values based on mongodb_systemlog_external_logrotate
|
|
|
|
mongodb_systemlog_logappend: 'true'
|
|
|
|
mongodb_systemlog_logrotate: reopen
|
|
|
|
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_cluster_enabled: False
|
2018-09-25 11:45:44 +02:00
|
|
|
mongodb_authorization_enabled: False
|
2015-10-13 13:51:19 +02:00
|
|
|
mongodb_replicaset: storagedev
|
2015-11-19 18:10:24 +01:00
|
|
|
mongodb_replica_keyfile: '{{ mongodb_dbpath }}/replica_keyfile'
|
2018-09-12 12:25:02 +02: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
|
2020-02-12 18:17:42 +01:00
|
|
|
|