Ansible Role linuxfabrik.lfops.repo_mongodb¶
This role deploys the package repository for MongoDB (a NoSQL document database).
Available since LFOps 2.0.0.
Tags¶
repo_mongodb
- Deploys the MongoDB repository.
- Triggers: none.
Mandatory Role Variables¶
repo_mongodb__version
- The MongoDB repo version to install. Have a look at the MongoDB repository for the list of available releases. On RHEL 10, it has to be 8.0 or newer: the upstream 7.0 repository for RHEL 10 lacks
mongodb-database-tools, so MongoDB cannot be installed from it, and the role aborts. - Type: String.
Example:
# mandatory
repo_mongodb__version: '8.0'
Optional Role Variables¶
repo_mongodb__basic_auth_login
- Use HTTP basic auth to login to the repository. Only takes effect together with a custom mirror URL; the default public repositories do not use basic auth. Defaults to
lfops__repo_basic_auth_login, making it easy to set this for allrepo_*roles. - Type: Dictionary.
- Default:
'{{ lfops__repo_basic_auth_login | d("") }}' -
Subkeys:
-
password:- Mandatory. Password.
- Type: String.
-
username:- Mandatory. Username.
- Type: String.
-
repo_mongodb__mirror_url
- Set the URL to a custom mirror server providing the repository. Defaults to
lfops__repo_mirror_urlto allow easily setting the same URL for allrepo_*roles. Iflfops__repo_mirror_urlis not set, the default mirrors of the repo are used. - Type: String.
- Default:
'{{ lfops__repo_mirror_url | d("") }}'
Example:
# optional
repo_mongodb__basic_auth_login:
username: 'my-username'
password: 'linuxfabrik'
repo_mongodb__mirror_url: 'https://mirror.example.com'