Commit Graph

25 Commits

Author SHA1 Message Date
Thiago Almeida dd3cc14e33 Modifying mongod conf template.
The new template will test if the systemLog option is file or syslog to
add the correct file path options.
2018-01-19 12:05:24 -02:00
Emilien Escalle c4b37649ee
Supports setParameter configuration 2018-01-09 12:39:07 +01:00
jsaliba e034149e2d Resolved conflicts between Daniel White's redhat-support branch and UnderGreen master 2017-09-13 16:26:32 +02:00
David Castellanos 40c3cedc7c Fix (again) Systemd support
Commit #d9393b1 did not completely fixed the systemd-related issues.
The handler "reload systemd" has a "when" clause which fails in
systemd-based systems.

This commit attempts to fix the problem described above. The "when"
clause in the handler "reload systemd" has been fixed. Some facts has
been added in the install playbook, in order to make the code more
simple and easier to maintain.
2016-09-29 09:39:37 +02:00
Daniel White 255dc39cc3 Define pidFilePath for offical RHEL packages
The init script in these packages _assumes_ that this variable is
defined. Without it, it fails to properly start the service.
2016-05-08 04:17:38 +10:00
Daniel White b74bade421 Introduce support for RedHat package installation
This provides initial support for installing the relevant MongoDB
packages for a RedHat based OS. This currently only supports RHEL/CentOS
6 in order to keep the initial scope relatively constrained.
2016-05-08 04:17:38 +10:00
Sergei Antipov 630e773962 Deleted unneeded parts 2016-04-17 20:40:20 +06:00
Sergei Antipov 25c7cec6f2 Support of mongodb 3 2016-04-17 19:43:00 +06:00
davidcaste 4b2899bb6e Fix replicaset config without authentication
According to MongoDB documentation[1], "enabling internal authentication
(in a replicaset) enables access control". Therefore, if MongoDB is
configured without authentication (`auth = no`) a `keyFile` line
must not appear in the configuration file.

This commit attempts to solve the problem described above. An extra
check has been added to ensure the `keyFile` configuration option is
added only if replicaset authorization _and_ authentication is enabled.

[1]: https://docs.mongodb.org/v3.0/tutorial/enable-internal-authentication/
2015-12-16 09:24:08 +01:00
Sergei Antipov 9442794314 Global refactoring of authorization and replication 2015-06-22 14:59:25 +06:00
Sergei Antipov e28b94aebf Merge pull request #13 from duhast/master
Configuration and authentication with custom settings fix
2015-04-06 21:07:10 +05:00
Oleg Vivtash a8e9ad8d0e mongodb_force_wait_for_port config var; mongodb_listen_iface renamed to mongodb_listen_ip; facts via a template 2015-04-06 18:53:40 +03:00
ftao 631a97e4e4 dont set quotaFiles if mongodb_conf_quota is false
because  
quotaFiles   "number of files allowed per db, implies --quota"  
ef7f17be80/src/mongo/db/mongod_options.cpp (L223)
2015-04-03 17:22:31 +08:00
Sergei Antipov 4c3919d920 Changes in variables definition 2015-02-17 19:20:06 +06:00
Sergei Antipov 5c04b2c8bb Deleted unused tasks and files 2015-02-17 19:20:06 +06:00
Sergei Antipov 3efddcf91d Added a lot of new feautures 2015-02-17 19:20:06 +06:00
Sergei Antipov 5f167f612a Added variables and task for replicaSet configuration 2015-02-17 19:20:06 +06:00
Sergei Antipov 2dba294ff8 Fixed problem with values in mongod.conf
Variables like "yes" where in conf file like "true". It's worked,
but it's wrong.
2015-02-17 19:20:06 +06:00
Kirill Klenov 356a1b5b61 Refactoring. Support MMS 2014-12-19 17:39:09 +03:00
Kirill Klenov fa4b1a0d39 Update the role 2014-12-11 22:09:31 +03:00
Kirill Klenov 1ee211b3a0 Sort options, update contributors. 2014-09-02 23:14:06 +01:00
Guillaume Dedrie c816661c18 Update configuration management using Ansible templates to be more flexible 2014-08-25 16:24:58 +02:00
Kirill Klenov 804d89698b Migrate to the mongo-org package 2014-07-30 18:32:46 +01:00
Kirill Klenov 513e601405 Rotate mongodb logs. 2014-07-10 16:20:15 +00:00
Kirill Klenov 1c29f2b317 Init role. 2014-06-04 19:03:58 +04:00