A saltstack formula to manage mongodb on RHEL and Debian based systems.
Note
See the full Salt Formulas installation and usage instructions.
Manage repo file on RHEL/CentOS 7 systems.
Install additional prerequisite packages
Install mongodb pacakges for RHEL and Debian based distros
Manage configuration file placement
Setup selinux rule to allow mongodb communication
Apply kernal tweaks and system tuning options
Optionally setup firewalld rules for mongodb replication and disable iptables Requires the firewall-formula or another method of managing the firewalld service
Optionally setup iptables rules for mongodb replication and disable firewalld Requires the firewall-formula or another method of managing the firewall service
Sets up the mongodb service and makes sure it is running on RHEL/CentOS 7 and Debian systems.
Enable and configure replica sets
Configure authentication on mongodb