stone-payments / ansible-mongodb Goto Github PK
View Code? Open in Web Editor NEW:green_book: Ansible role to setup a MongoDB with replica set support -- Arquivado por Foundation Platform dia 2023-11-28
License: MIT License
:green_book: Ansible role to setup a MongoDB with replica set support -- Arquivado por Foundation Platform dia 2023-11-28
License: MIT License
There seems to be no support for TLS. Is it planned?
I have 2 servers with ubuntu 16.04.4 LTS
my ansible playbook:
- hosts: mongo
roles:
- stone-payments.mongodb
vars:
- mongodb_conf_bindIp: "0.0.0.0"
- mongodb_replSet_enabled: true
- mongodb_replSet_name: "someReplicaSetName"
- mongodb_replSet_master: "192.168.1.65"
- mongodb_replSet_isMaster: "{{ true if mongodb_replSet_master in ansible_all_ipv4_addresses else false }}"
When I run this playbookt, I get an error:
TASK [stone-payments.mongodb : connect to master] *******************************************************************************************************************************************************************************************
fatal: [ubuntu2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.1.66 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_Fq6YXJ/ansible_module_mongodb_replica_set.py\", line 447, in <module>\r\n main()\r\n File \"/tmp/ansible_Fq6YXJ/ansible_module_mongodb_replica_set.py\", line 442, in main\r\n result['changed'] = rs_alter(client, member, state, 0)\r\n File \"/tmp/ansible_Fq6YXJ/ansible_module_mongodb_replica_set.py\", line 343, in rs_alter\r\n current_member = rs_get_member(rs_config, member['host'])\r\n File \"/tmp/ansible_Fq6YXJ/ansible_module_mongodb_replica_set.py\", line 289, in rs_get_member\r\n a = filter(lambda x: x['host'] == member, rs_config['members'])\r\nTypeError: 'NoneType' object has no attribute '__getitem__'\r\n", "msg": "MODULE FAILURE", "rc": 0}
There seems to be no support for TLS. Is it planned?
The existing configuration does not change the permissions of the data directory recursively when it's not empty (e.g. restoring files from a snapshot). This can cause MongoDB
to break with permission problems.
The configuration also does not account for the log path directory, that must also be writable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.