170 Commits

Author SHA1 Message Date
Nicolas Boutet
4074743f18 Make NUMA optional 2020-01-10 15:31:31 +01:00
Mikhail Konyakhin
d0bacd7cd2 Split replication configuration without auth to fix first run ansible
on all hosts in MongoDB cluster in same time.
2019-12-27 13:40:19 +03:00
Mikhail Konyakhin
56af8c7e9b Remove not needed conditions from handlers. 2019-12-21 15:52:35 +03:00
Mikhail Konyakhin
0b50bcc867 Fix systemd unit file for mongodb and add manage limits. 2019-12-21 12:38:07 +03:00
Mikhail Konyakhin
1676d32ddf Merge branch 'master' into fix_disable-transparent-hugepages 2019-12-19 22:58:39 +03:00
Mikhail Konyakhin
79269de800 Update formating and fix tests. 2019-12-14 16:01:12 +03:00
Mikhail Konyakhin
fc41e73edf Merge branch 'master' of https://github.com/UnderGreen/ansible-role-mongodb into manage_unit_systemd 2019-12-13 16:43:53 +03:00
Mikhail Konyakhin
db328011d5 Fix unit file of disable-transparent-hugepages and fix all time change status. 2019-11-25 14:02:26 +03:00
Mikhail Konyakhin
1c128e7590 Fix permissions of log directory and file of MongoDB. 2019-11-25 13:20:19 +03:00
Mikhail Konyakhin
137e4f1f2a Add flag 'mongodb_manage_systemd_unit' for disable manage systemd unit
file of MongoDB.
2019-11-25 12:54:21 +03:00
hshan
c68216a46b Add yum_lock_timeout to avoid "yum lockfile is held by another process" error 2019-11-01 19:30:14 +09:00
Nautikos1235
31f9f039ef Add setuptools install 2019-09-27 16:50:45 +02:00
Nautikos1235
d488567333 Use provided username in task name 2019-09-19 16:50:12 +02:00
Abhay PS
6556ffa9c9 Mongodb 4.2 support added 2019-09-10 12:24:56 +02:00
Patrick Dreker
b6b99e33ff Ensure the systemd file is created under the
correct name

When installing mongodb-org packages on Debian/Ubuntu the daemon name is
set to "mongod" but the .service file is unconditionally installed as
"mongodb.service". This PR ensures, that the systemd file (and the
accompanying symlink) are installed as "mongodb_dameon_name.service".
Otherwise installation fails with
fatal: [tmongo-02]: FAILED! => {"changed": false, "msg": "Could not find the requested service mongod: host"}
for every host, as the handler tries to restart mongod, but systemd only
sees mongodb
2019-06-14 15:10:03 +02:00
Mikhail Konyakhin
f8142e6d5a Add correct support mode requireSLL. 2019-06-05 17:58:06 +03:00
Nicolas Boutet
bcc48b329e Improve disable THP systemd unit file 2019-06-03 18:57:48 +02:00
Sergei Antipov
02f3334b1a
Fix issue with amazonlinux 2019-05-28 15:55:35 -04:00
Sergei Antipov
79aea9ac40
Few more fixes 2019-05-28 13:39:54 -04:00
Sergei Antipov
606210c767
Multiple changes for linting warnings
+ propert handling of mongodb_version variable
2019-05-27 15:00:59 -04:00
Sergei Antipov
5ee8162161
Fixed for Ansible 2.8 2019-05-25 22:52:10 -04:00
Sergei Antipov
852ad2149e
Fix all issues and warnings 2019-05-23 00:37:39 -04:00
Sergei Antipov
1d0593464e
Fix issues for yum 2019-05-21 16:42:26 -04:00
Sergei Antipov
7825db9f79
Fix issue with apt 2019-05-21 16:39:59 -04:00
Sergei Antipov
02495dece3
Fix for linting warnings 2019-05-21 15:42:02 -04:00
Sergei Antipov
3cfe431492
Merge pull request #159 from thiagoalmeidasa/master
Adding amazonlinux support
2019-05-21 14:14:52 -04:00
Sergei Antipov
daac15cd1a
Merge pull request #160 from psabhay/master
Mongodb package name fix for ubuntu 18.04
2019-05-21 14:14:35 -04:00
Abhay PS
00e8a6e2d4 template error in conditional fixed. 2019-05-21 09:43:56 +02:00
Sergei Antipov
c38ca80891
Merge pull request #158 from boutetnico/fix_systemd_perm
Fix systemd service file permissions
2019-05-20 20:21:01 -04:00
Sergei Antipov
1dbfaef824
Merge pull request #157 from boutetnico/add_options
Allow more options in replication params
2019-05-20 20:20:09 -04:00
Abhay Pratap Singh
960842c5c4 mongodb 3.6 is not available on mongodb repo. It must be installed from ubuntu repo with package name mongodb. 2019-05-20 19:53:38 +02:00
Abhay PS
3b22a28d39 Mongodb package name fix for ubuntu 18.04
- mongodb package name for 18.04 is 'mongodb-org'
- package name 'mongodb' will install mongodb
  from ubuntu repo which is 3.6 currently and is
  not a recommended way.
2019-05-20 10:50:54 +02:00
Thiago Almeida
6b2e822a9f Fixing pip install on amazonlinux task 2019-05-17 14:23:16 +02:00
Thiago Almeida
63db0f9225 Fixing install on amazonlinux task 2019-05-17 14:02:48 +02:00
Thiago Almeida
4ec3826b1d Removing deprecated loop for packages 2019-05-17 12:10:09 +02:00
Thiago Almeida
60c2538f0d Adding ansible_distribution filters and files for amazonlinux 2019-05-17 11:57:53 +02:00
Nicolas Boutet
08fc1f82b9 Fix systemd service file permissions 2019-05-15 17:09:06 +02:00
Nicolas Boutet
97ab03f81f Allow more options in replication params 2019-05-15 16:16:11 +02:00
Nicolas Boutet
6ba243a486 Add variable to customize mongodb package state 2019-05-15 15:39:46 +02:00
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 659299e01fadc831665c0a31f3f7993fa6cc95d5
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