Debian Codegraph @

ansible_collections/community/mongodb/roles/mongodb_linux/README.md

raw
1 mongodb_linux
2 =============
3
4 A simple role to configure Linux Operating System settings, for Debian and RedHat systems, as advised in the [MongoDB Production Notes](https://docs.mongodb.com/manual/administration/production-notes/).
5
6 A brief description of what we do in this role:
7
8 * Set swappiness.
9 * Ensure NTP (or equivalent) service is installed and running.
10 * Ensure GNU C Library is the latest available.
11 * Disable NUMA reclaim zone.
12 * Add script to disable transparent-huge-pages and setup as a service.
13 * Set pam limits.
14 * Set various sysctl values.
15
16 Role Variables
17 --------------
18
19 swappiness: OS swappiness value. Default "1".
20 mongodb_ntp_package: Name of ntp package. Default depends on OS-specific vars.
21 mongodb_ntp_service: Name of ntp service. Default depends on OS-specific vars.
22 mongodb_gnu_c_lib: Name of the GNU C lib. Default depends on OS-specific vars.
23
24 * On RedHat 8 and higher systems ntp_package and ntp_service are set to chrony and chronyd respectively.
25
26 Example Playbook
27 ----------------
28
29 ```yaml
30 - hosts: servers
31 roles:
32 - mongodb_linux
33 ```
34
35 License
36 -------
37
38 BSD
39
40 Author Information
41 ------------------
42
43 Rhys Campbell (https://github.com/rhysmeister)