Commit Graph

250 Commits

Author SHA1 Message Date
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
Sergei Antipov 084f09a789 Merge branch 'ubuntu_1204_fix_travis_builds' 2016-05-09 16:30:17 +06:00
Sergei Antipov 0e7e73871d Fixed problem with testing for 12.04 version 2016-05-09 15:57:26 +06:00
Sergei Antipov 9f208d1be4 Build Ubuntu 12.04 image insteed of pull it 2016-05-09 14:52:43 +06:00
Daniel White 4b22cc431d Enable server process forking by default on RedHat
The init scripts that are provided assume that forking is enabled by
default. This has been left in defaults, to preserve the capability for
users to override this option.
2016-05-08 04:17:38 +10: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 6ccd0a332c Indicate level of support for RHEL/CentOS
Despite the test builds for CentOS, it's probably safe to mark them as
unknown until they've been used a bit more heavily.
2016-05-08 04:17:38 +10:00
Daniel White 589222f25e Provide better default user for a RedHat based OS
While we could define this in the per-platform variables, including this
in the defaults maintains backwards compatability for users that want to
override this value.
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
Daniel White 52b1f395ea Ensure tests run with expected docker image
This has been working so far since the tests have only cared about
Ubuntu as a target. Now that RedHat is an option, the default needs to
be overriden.
2016-05-08 04:13:36 +10:00
Sergei Antipov 0ea31ad349 Changed ansible_user for tests
Problem with ansible connection type 'docker' solved for
Travis CI tests.
2016-05-07 23:16:43 +06:00
Sergei Antipov 48fcd565fe Merge pull request #58 from danielwhite/configure-dbpath-owner
Ensure dbpath directory has configurable owner
2016-04-27 18:45:36 +06: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 707d0ecaae Added meta info about precise [skip ci] 2016-04-19 13:23:29 +06:00
Sergei Antipov 86d4cb209a Merged backup user creating 2016-04-18 19:08:24 +06:00
Sergei Antipov 6341395252 Changed meta information [skip ci] 2016-04-18 18:37:52 +06:00
Sergei Antipov 81e05e0cc0 Updated support matrix [ci skip] 2016-04-18 13:19:41 +06:00
Sergei Antipov a996054a90 Merge pull request #56 from UnderGreen/travisci_improvements
Added 12.04 ubuntu testing
2016-04-18 13:16:11 +06:00
Sergei Antipov 4fd167c1dc Added 12.04 ubuntu testing 2016-04-18 10:48:13 +06:00
Sergei Antipov 177869a30d Added Travis CI build status [ci skip] 2016-04-17 23:59:53 +06:00
Sergei Antipov 77c55d557b Fixed problem with concurrency race 2016-04-17 23:18:31 +06:00
Sergei Antipov b387a16715 Added new Travis CI tests 2016-04-17 21:44:11 +06:00