main.yml 2.23 KB
Newer Older
1
2
3
---
## User-specific options ##
# Database root user
4
5
mongodb_root_name: dbRoot
mongodb_root_password: root
6

7
8
mongodb_user_admin_name: dbUserAdmin
mongodb_user_admin_password: userAdmin
9

10
mongodb_users: []
11
12
13
14
15
16
17
18
19
20
21
22

## System options ##
# MongoDB package name (mongodb-org for vendor, mongodb for apt)
mongodb_package: mongodb-org

# APT keyserver
mongodb_apt_key_keyserver: hkp://keyserver.ubuntu.com:80

# Vendor APT key
mongodb_apt_key_id: EA312927

# Toggle transparent huge page
23
mongodb_disable_thp: yes
24
25
26
27
28
29
30

# User name for the mongodb process
mongodb_user: mongodb

# Daemon name, which is different in the official repo and the vendor repo
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"

31
# PyMongo version to install -- if evaluates to no, will install from apt instead
32
33
mongodb_pymongo_pip_version: "2.9"

34
35
# Location for misc files
mongodb_misc_dir: /opt/mongodb
36
37
38

## Config file options ##
# Enable security
39
mongodb_conf_auth: yes
40
41
42
43
44

# Comma separated list of ip addresses to listen on
mongodb_conf_bind_ip: 127.0.0.1

# Periodically show cpu and iowait utilization
45
mongodb_conf_cpu: yes
46
47
48
49
50

# Directory for datafiles
mongodb_conf_dbpath: /data/mongodb

# Fork server process
51
mongodb_conf_fork: no
52
53

# Enable http interface
54
mongodb_conf_httpinterface: no
55
56

# Enable IPv6 support (disabled by default)
57
mongodb_conf_ipv6: no
58
59

# Enable journaling
60
mongodb_conf_journal: yes
61
62

# Append to logpath instead of over-writing
63
mongodb_conf_logappend: yes
64
65
66
67
68
69
70
71

# Log file to send write to instead of stdout
mongodb_conf_logpath: "/var/log/mongodb/{{ mongodb_daemon_name }}.log"

# Max number of simultaneous connections
mongodb_conf_maxConns: 10000

# Disable data file preallocation
72
mongodb_conf_noprealloc: no
73
74

# Disable smallfiles option
75
mongodb_conf_smallfiles: no
76
77

# Disable scripting engine
78
mongodb_conf_noscripting: no
79
80

# Do not allow table scans
81
mongodb_conf_notablescan: no
82
83
84
85
86

# Specify port number
mongodb_conf_port: 27017

# Limits each database to a certain number of files
87
mongodb_conf_quota: no
88
89
90
91
92
93
94

# Number of quota files
mongodb_conf_quotaFiles: 8


## logrotate options ##
# Log rotation toggle
95
mongodb_logrotate: yes
96
97
98
99
100
101
102
103
104
105

# Log rotation options
mongodb_logrotate_options:
  - size 10M
  - weekly
  - rotate 4
  - dateext
  - compress
  - notifempty
  - copytruncate