Skip to content

girder/ansible-role-girder-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

girder.mongodb

Apache 2.0

An Ansible role to install MongoDB server.

Requirements

Ubuntu 18.04+.

Role Variables

parameter required default comments
mongodb_version no 4.4 The major.minor version of MongoDB to install.
mongodb_data_path no /var/lib/mongodb The filesystem path where data files will be persisted.
mongodb_bind_public no false Whether to bind to all network interfaces. This is a security risk.
mongodb_authorization no false Whether to enable access control. Users must be created separately.

Example Playbook

A typical playbook using this role may look like:

- name: Deploy MongoDB
  hosts: all
  vars:
    ansible_python_interpreter: auto
  roles:
    - role: girder.mongodb
      vars:
        # Pin version to prevent automatic upgrades
        mongodb_version: "4.4"

A typical Ansible Galaxy requirements.yml file should look like:

- src: girder.mongodb
  version: master

License

Apache 2.0

About

An Ansible role to install MongoDB server.

Resources

License

Stars

Watchers

Forks

Contributors