Commit Graph

271 Commits

Author SHA1 Message Date
Sergei Antipov cb8f408764 Python language. Install apt https 2018-02-15 13:35:18 +07:00
Sergei Antipov 3cb4a7dd14 Moved before install tasks into script 2018-02-15 13:30:38 +07:00
Sergei Antipov ce4c61bdad Ubuntu 12.04 officially is EOL 2018-02-15 13:18:05 +07:00
Sergei Antipov 2aa63f5f16 Fix warnings 2018-02-15 13:14:31 +07:00
Sergei Antipov bd80043e76 Change travis image to Ubuntu Trusty 2018-02-15 11:01:21 +07:00
Sergei Antipov 37a1d6681b
Merge pull request #90 from thiagoalmeidasa/master
Modifying mongod conf template.
2018-01-21 12:51:05 +07:00
Thiago Almeida 1731f12a20
Merge pull request #2 from thiagoalmeidasa/1-improve-systemLog-options
Modifying mongod conf template.
closes #1
2018-01-19 13:21:59 -02: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
Sergei Antipov 293d820073
Merge pull request #88 from neilime/patch-1
Supports setParameter configuration
2018-01-09 19:22:57 +07:00
Emilien Escalle d894c8412c
Add doc for mongodb_set_parameters var 2018-01-09 12:44:53 +01:00
Emilien Escalle ceffd529e6
Add default mongodb_set_parameters var 2018-01-09 12:41:48 +01:00
Emilien Escalle c4b37649ee
Supports setParameter configuration 2018-01-09 12:39:07 +01:00
Sergei Antipov 54a2e1ea3b Merge pull request #83 from justinsaliba/redhat-support
Redhat support
2017-09-19 11:15:33 +07:00
jsaliba 7c3cfd2353 Added tests for Mongo 3.4 against Ubuntu 14.04 and 12.04 2017-09-18 12:41:09 +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 349383f1fd fixed readme interrobang 2017-09-14 14:21:36 +02:00
jsaliba 6d529d5238 Added initscripts to dockerfile 2017-09-14 13:14:50 +02:00
jsaliba 61ccb2f46b renabled rest of tests. 2017-09-14 11:21:37 +02:00
jsaliba 2e6cd41cb1 yum -y flag for epel release in dockerfile. 2017-09-14 10:59:59 +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 84ecb5707e Disable every test except for CentOS 7 and Mongo 3.4 2017-09-14 08:59:49 +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 d6997059cb Added support for mongo 3.4 when executing against RedHat 2017-09-14 08:55:31 +02:00
jsaliba 01bdfc6ef4 Missed conflict. 2017-09-13 16:30: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
Sergei Antipov 9ba2bbc86a Merge pull request #82 from kripplek/trivial-readme
Most trivial change I've ever made
2017-06-23 11:46:11 +07:00
Kripple 5ba6937786 Most trivial change i've ever made 2017-06-22 11:39:58 -07:00
Sergei Antipov 7a05c1e9b5 Merge pull request #81 from csanquer/mongo_3.4
add mongo 3.4 support
2017-06-16 23:12:30 +07: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
Sergei Antipov cb74360585 Merge pull request #77 from anatoly-chichikov/multiple-ip-binding-fix
Fixed issue with multi-port binding timeouts
2017-03-19 23:31:06 +07:00
Anatoly Chichikov 4fcbaa02ed Fixed issue with multi-port binding timeouts 2017-03-11 16:38:48 +03:00
Sergei Antipov 1ba531c5c6 Merge pull request #76 from open-craft/bdero/increase-fd-limit
Increase the file descriptor limit for the systemd service.
2017-03-07 16:43:20 +07:00
Brandon DeRosier e7a9b464f0
Increase the file descriptor limit for the systemd service.
The default service FD limit of 1024 is not sufficient for MongoDB
deployments that handle thousands of client connections and
databases.
2017-03-07 01:18:45 -05:00
Sergei Antipov 2dec49074d Merge pull request #70 from davidcaste/fix-again-systemd
Fix (again) Systemd support
2016-10-05 15:00:51 +07: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
Sergei Antipov ec291ba617 Merge pull request #67 from davidcaste/fix-systemd-test
Fix systemd test for Ubuntu Xenial
2016-09-22 11:01:15 +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
Sergei Antipov d10f2919b1 Merge pull request #65 from maiers/master
Enabling check_mode
2016-08-02 10:50:33 +07: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
Sergei Antipov 3cc5ee6378 Merge pull request #63 from mflopez79/fix_readme
Allowed values for security are enabled/disabled. A true value will produce mongo to not start at all on the server [ci skip]
2016-06-02 14:36:22 +07:00
Matias Lopez Riglos 64d9a0755f Allowed values for security are enabled/disabled. A true value will produce mongo to not start at all on the server 2016-05-19 11:07:36 -03:00
Sergei Antipov 7bfc707fcf Update description of replication module [skip ci] 2016-05-18 17:38:25 +06:00
Sergei Antipov cc835a3f18 Merge pull request #61 from ecerulm/patch-1
Ensure service is started
2016-05-10 14:17:43 +07: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