Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

circleci/mongodb-replicaset-vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongodb-replicaset-vagrant

Vagrant configuration to run a mongodb replica set on any OS.

This setup boots up a 4 gig ubuntu xenial (16.04) machine running with mongodb (3.4) in a PSS (Primary, Secondary, Secondary) replica set configuration.

A user with root role is created by default. Username and Password are available in setup.sh. Please change the username and password as per your needs.

All nodes of the replica set run on ports as mentioned below. All ports are forwarded to the local machine. You should be able to connect to the replica set with any mongodb management tool like Robo3T.

Primary Node - 27017

Secondary Node 1 - 27018

Secondary Node 2- 27019

Know More About Configuring mongodb-replicaset.

Prerequisite

  1. Vagrant setup needs to be configured on the local machine. Know more about how to setup vagrant.

Usage

  1. Clone the repository on your local machine
  2. Run vagrant up to start the vagrant machine.

SSH

# Get key file
vagrant ssh-config | grep IdentityFile
ssh vagrant@localhost -p 2222 -i <identityfile-localtion>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 88.9%
  • Dockerfile 11.1%