kowabunga.cloud.mongodb role – Install, configure, and start local MongoDB cluster.
Note
This role is part of the kowabunga.cloud collection (version 0.0.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install kowabunga.cloud
.
To use it in a playbook, specify: kowabunga.cloud.mongodb
.
Entry point main
– Install, configure, and start local MongoDB cluster.
Synopsis
Install, configure, and start local MongoDB cluster.
Parameters
Parameter |
Comments |
---|---|
Password for MongoDB admin user. Suggested to be store securely into a vaulted variable. |
|
Name of the MongoDB admin user Default: |
|
Location on local machine to dump MongoDB database backup. Default: |
|
Defines whether daily backups of MongoDB database must be performed. Backups occur daily at 5am local time. Enabled if unspecified. Choices:
|
|
Defines whether a local MongoDB cluster should be deployed. Useless if you already have a remote MongoDB cluster. Disabled if unspecified. Choices:
|
|
Local IP addresses for MongoDB server to bind to. Private network address is required if you intend to setup a cluster (i.e. non standalone instance). Comma-separated list of IP addresses. Default: |
|
Defines whether to enable support for MongoDB replicaset. Required for clustering. Harmless on a standalone instance (allows for future scale up). Choices:
|
|
Replicaset clustering authentication key. Free string, as much complex as expected. Requires by cluster peers to interconnect. |
|
Replicaset cluster name Free string. |
|
List of local MongoDB users to be created. Default: |
|
MongoDB database name the user manages. |
|
MongoDB user password. Suggested to be store securely into a vaulted variable. |
|
Defines whether the user has read-only or read-write privilege on the selected database. Choices:
|
|
MongoDB user name. |