Commit Graph

131 Commits

Author SHA1 Message Date
Sergei Antipov 45309059e9
Merge pull request #155 from fllaca/v4.0-fix-tests
Support V4.0
2019-05-10 13:29:18 -04:00
Fernando Llaca 7c0d099662 Fix wrong major version parse.
Reverted from 659299e01f
2019-05-09 23:03:24 +02:00
Fernando Llaca d7ba98aca8 Dropped support of EOL version 3.2 of MongoDB. 2019-05-09 22:57:34 +02:00
ShaulMyplay 282591852a
Apt update cache before installing mogodb
Fix "No package matching 'mongodb' is available" error
2019-05-01 14:04:29 +03:00
Paulo Pizarro 7a52105811 Closes UnderGreen/ansible-role-mongodb#102 2019-04-26 20:17:47 -03:00
Paulo Pizarro 0ab86358bf Fixed mms agent configuration 2019-04-26 20:13:58 -03:00
vagrant becfbc4672 Flush handlers warning in block 2019-04-09 10:40:48 +02:00
vagrant e4e5504168 Typo resolved 2019-04-09 10:37:54 +02:00
vagrant 70ae07a6e7 Deprecation test as filters resolved 2019-04-09 10:35:12 +02:00
vagrant e292e44978 Deprecation for apt resolved 2019-04-09 10:00:17 +02:00
Sergei Antipov 6745bcc28a
Merge pull request #128 from litewhatever/master
Oplog user creation
2019-03-09 22:56:19 -05:00
Sergei Antipov 72c6654036
Merge pull request #141 from mhavas/set-setype-on-data-directory
Set selinux type on data directory
2019-03-09 22:55:54 -05:00
mhavas 346c0eedab
Set selinux type on data directory 2019-01-29 08:07:45 -05:00
Gaëtan Duchaussois 6d70ecaf90 Add a variable to disable transparent hugepages on systemd debian installations 2018-12-18 10:50:38 +01:00
Florian Mauduit 659299e01f Add suport for MongoDB v4.0 2018-10-03 12:41:39 +02:00
Kristjan Kullerkann e5b79820c8 Oplog user creation
Add functionality to create oplog users
2018-09-03 23:06:22 +03:00
Sergei Antipov 8501b9ce3b
Merge pull request #116 from zeelax/fix/mms-agent-install
Put tasks in the right order
2018-08-24 06:53:57 -04:00
Sergei Antipov f4a474b85e Fix task name 2018-07-13 18:59:35 -04:00
Sergei Antipov 8cfc47bb7a Ubuntu 18.04 support 2018-07-13 18:50:23 -04:00
Sergei Antipov bc6273b6ed Fix condition 2018-07-12 23:25:18 -04:00
Sergei Antipov 6cf617c771 Added support of MongoDB 3.6 for Debian Stretch 2018-07-12 18:43:56 -04:00
Maxim Kravets f12eb3e953 Put tasks in the right order 2018-07-06 11:53:17 +02:00
Gaëtan Duchaussois bd4256da88 Allow user to choose PyMongo version when using pip 2018-06-27 11:57:28 +02:00
Sergei Antipov 023b3e115c Fixed MMS-agent installation on RedHat machines 2018-02-26 18:46:28 +07:00
Sergei Antipov b03ff7bf65 Fix replication module 2018-02-26 15:35:36 +07:00
Sergei Antipov 0e7c080a30 Fix condition for task 2018-02-23 19:44:46 +07:00
Sergei Antipov cc1decf1f9 Reload systemd after install 2018-02-23 19:35:03 +07:00
Sergei Antipov de80ca4284 Add debian testing 2018-02-23 00:43:04 +07:00
Sergei Antipov 188cbaae59 Fixes to use MongoDB 3.6 2018-02-21 01:23:43 +07:00
Sergei Antipov 2aa63f5f16 Fix warnings 2018-02-15 13:14:31 +07:00
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
jsaliba b0a9f34bae Installation of EPEL repository is now part of RHEL YML file. 2017-09-18 12:39:07 +02:00
jsaliba 5b3623f9f1 MMS Agent can now be installed on RHEL distributions. 2017-09-18 12:36:33 +02:00
jsaliba 986678b733 Moved EPEL installation command to Docker file. Travis now uses custom Docker image built from CentOS Dockerfile. nolog re-enabled for user admin checking. 2017-09-14 10:56:34 +02:00
jsaliba 9bb46f2f20 CentOS 7 docker file 2017-09-14 09:47:27 +02:00
jsaliba 429e108551 Trying to get Docker tests to work by running tests in privileged containers and installing EPEL repository for CentOS image. 2017-09-14 08:57:16 +02:00
jsaliba e034149e2d Resolved conflicts between Daniel White's redhat-support branch and UnderGreen master 2017-09-13 16:26:32 +02:00
Charles Sanquer 0ca0675e9d add mongo 3.4 support 2017-06-16 16:27:57 +02:00
Sergei Antipov cec74eeb1e Merge pull request #79 from valferon/master
Add custom port in command to check if admin user exists
2017-04-10 14:24:32 +07:00
valferon dd7c3078f8 Add custom port in command to check if admin user exists 2017-04-10 16:04:24 +10:00
Anatoly Chichikov 4fcbaa02ed Fixed issue with multi-port binding timeouts 2017-03-11 16:38:48 +03: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
Sergei Antipov a830a58291 Merge pull request #68 from davidcaste/no-passwords-in-stdout
Do not show passwords in Ansible output
2016-09-22 11:07:29 +07:00
David Castellanos 01bcbcf167 Do not show passwords in Ansible output
This role prints passwords in Ansible outputs (e.g. when creating
users, etc.). This is a problem because passwords must never appear
in plaintext under any circunstances.

This commit attempts to fix the problem described above. The option
"no_log: true" has been added to tasks which may print passwords
during Ansible execution.
2016-09-21 23:51:38 +02:00
David Castellanos d9393b1b66 Fix systemd test for Ubuntu Xenial
The role checks if the system is running or not systemd. It checks the
name of the process with PID1, and if it contains the string "systemd"
assumes that the host is systemd-based. Unfortunately that check fails
in Ubuntu Xenial:

  vagrant@mongo-xenial:~$ cat /proc/1/cmdline
  /sbin/init

A better approach may be to check if /sbin/init is a symlink or a
binary. In systemd-based systems (e.g. Ubuntu Xenial), /sbin/init is a
symlink to the systemd binary:

  vagrant@mongo-xenial:~$ file /sbin/init
  /sbin/init: symbolic link to /lib/systemd/systemd

In Ubuntu Trusty /sbin/init is a binary:

  vagrant@mongo-trusty:~$ file /sbin/init
  /sbin/init: ELF 64-bit LSB  shared object, x86-64, version 1 (SYSV),
  dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
  BuildID[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, strippe

This commit attempts to solve the problem described above. The systemd
check has been rewritten to check if /sbin/init is a binary or a
symlink.
2016-09-21 16:33:05 +02:00
Sebastian Maier b949a5e6dd added 'always_run=yes' for two script tasks otherwise preventing check_mode to run through 2016-07-15 15:57:06 +02:00
Ruben Laguna 705ea295b3 Ensure service is started
Since the service could have been stopped manually (outside Ansible) we should ensure that the service is started before waiting for the port to come up.
2016-05-09 22:06:37 +02: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
Daniel White a0ce9baaac Ensure dbpath directory has configurable owner
Looks like when this variable was introduced, this particular task was
missed.

This has also been moved to the configuration stage, since it seems to
fit with the task for ensuring the log directory exists, too.
2016-04-27 14:14:55 +10:00
Sergei Antipov 86d4cb209a Merged backup user creating 2016-04-18 19:08:24 +06:00