softasap.sa_mongo

sa-mongo

Build Status Build Status

This role helps you install MongoDB versions 3.2, 3.4, 3.6, 4.0, or 4.2 on Ubuntu-based systems.

Distribution MongoDB 2.6 MongoDB 3.2 MongoDB 3.4 MongoDB 3.6 MongoDB 4.0 MongoDB 4.2
Ubuntu 14.04 ✔️ ✔️ ✔️
Ubuntu 16.04 ✔️ ✔️ ✔️ ✔️ ✔️
Ubuntu 18.04 ✔️ ✔️ ✔️ ✔️ ✔️
  • ✔️ - should work fine
  • ❓ - not enough production data for reliability
  • ❌ - not recommended for installation

Check the end-of-life (EOL) status for MongoDB versions. It's best to use the latest or a previous release. Old versions are available for compatibility reasons with older setups.

You can specify the MongoDB version with the mongo_version parameter.

mongo_version: "4.2"  # Choose from: "2.6", "3", "3.2", "3.4", "3.6", "4.0", "4.2"
mongo_family: "org"    # Choose from: "org" or "enterprise"

Examples:

Simple:

     - {
         role: "sa_mongo",
         mongo_version: "4.2"
       }

Advanced:

     - {
         role: "sa_mongo",
         mongo_version: "4.2",
         mongo_family: "enterprise"
       }

Activate Authorization from Console

mongo --eval "use admin; db.createUser({user: \"master\", pwd: \"ofthe7keys\", roles: [ { role:\"userAdminAnyDatabase\", db: \"admin\" } ]})"
sudo yq e ".security.authorization = \"enabled\"" -i /etc/mongod.conf
sudo service mongod restart
mongo --port 27017 --authenticationDatabase "admin" -u "master" -p

Using with Ansible Galaxy Workflow

If you installed the sa_mongo role with the command:

   ansible-galaxy install softasap.sa_mongo

You will find the role in the folder library/softasap.mongo. Adjust the path if necessary.

     - {
         role: "softasap.sa_mongo"
       }

The code is available under both the BSD 3-Clause License and the MIT License. Choose the one that works best for you.

Get in Touch:

Informazioni sul progetto

installs MongoDB 3.2, 3.4, 3.6, 4.2 on ubuntu based box

Installa
ansible-galaxy install softasap.sa_mongo
Licenza
mit
Download
82
Proprietario
Get your application deployed in a robust way