Rheinwerk.update_mongos_config
Update Mongos Config
This role is meant for updating a mongos configuration. It is typically used early in the startup process, before the services begin running.
Note that this role does not start the service; it assumes that the mongos program is already installed.
Requirements
The target machine must have mongos installed.
Role Variables
The main variable for this role is _mongos
. It is a map containing all the configuration and settings needed. Check defaults/main.yml
for more details.
Dependencies
None.
Example Playbook
This role takes the _mongos
variable map from defaults/main.yml
and uses it as a template for your configuration. You can pass that configuration to this role.
Here's an example of how to use the role with parameters:
- hosts: servers
vars:
MONGOS:
...
roles:
- { role: update_mongos_config, tags: [ 'mongos' ], _mongos: "{{ MONGOS }}" }
License
Please refer to the LICENSE file.
Author Information
The original author is Daniel Schneller, part of the Rheinwerk project.