Commit Graph

107 Commits

Author SHA1 Message Date
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
Sergei Antipov 77c55d557b Fixed problem with concurrency race 2016-04-17 23:18:31 +06: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
Sergei Antipov b6e2ffe362 Fixed variable conditional 2016-03-04 01:22:38 +06:00
Sergei Antipov 3dfa06c44f Added feature to use mongodb versions >= 3.0 2016-03-04 01:20:08 +06:00
Sergei Antipov 390f9263c4 Added task for waiting mongodb server is running 2016-03-04 01:18:01 +06:00
Sergei Antipov 45da87de3d Merge pull request #48 from rapkin/master
Fixed "ERROR! 'mongodb_replication_params' is undefined"
2016-02-03 13:13:39 +05:00
Anton Markelov 5f101340de Resolve error in single-node installation 2016-02-03 15:53:32 +09:00
rapkin e66450e580 added default values for `mongodb_replication_params ` to avoid undefined 2016-01-29 14:37:25 +02:00
rapkin 42487b9f46 fixed `mongodb_replication_params is undefined` error (closes #37) 2016-01-29 14:17:16 +02:00
davidcaste 111069fbee Add support for hidden repl members and priorities
Currently ansible-role-mongodb does not support replicaset member
attributes as "hidden" and "priority".

This commit attempts to solve the problem described above. Support for
attributes "hidden" and "priority" has been added.
2015-12-14 09:17:37 +01:00
Mohamed Hazem 8cbc617dc9 YWB-762: Adding a mongodb to the infrastructure
- Fixed wait_for args
2015-11-23 18:06:21 +02:00
Mohamed Nabil Hafez df90644552 Adding wait after mongodb restart 2015-11-22 11:58:35 +02:00
e.dekhtyarev 05b608b31a Add user for backup mongodb databases 2015-11-17 12:14:41 +06:00
Sergei Antipov b22dcbdd28 Fixed problem with pip 2015-11-17 12:02:33 +06:00
Sergei Antipov 9b108da9f5 Added version for pymongo 2015-11-17 11:56:02 +06:00
Adam Snodgrass d21e963a27 Use mongodb_conf_dbpath rather than a hard-coded path name 2015-11-17 11:56:02 +06:00
Dariusz Luksza fbd30315e4 Move /data ensuring task after package install 2015-11-17 11:56:02 +06:00
Dariusz Luksza 53041f47d0 Fix typo 2015-11-17 11:56:01 +06:00
James Yang d88e811ad4 parameterize apt key and apt repo variables
remove when conditional
2015-11-17 11:56:01 +06:00
Dariusz Łuksza 183e6d485f Ensure /data/db directory on debina
It appears that standard mongo install process on debian doesn't create the /data/db directory. This prevents mongo process from starting and required manual job on the server.

With this fix the /data/db directory will be created by ansible during install process.
2015-11-17 11:56:01 +06:00
Sergei Antipov 2ef7e5bc77 Fixed problem with mongodb_users param 2015-11-16 16:46:18 +06:00
Sergei Antipov 53b969c23f Updated sysfs tasks 2015-07-24 11:52:21 +06:00
Sergei Antipov 4a2199ae60 Merge pull request #25 from deimosfr/master
Ok, merged
2015-06-29 11:29:44 +05:00