Skip to content

wenderjean/mongo_replicaset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongo_replicaset

This project is a final environment created by Vagrant and Puppet for MongoDB cluster. Will be create 3 machines that contains an instance of MongoDB.

Machines are arranged as follows:

mongo0.replica - 192.168.33.20
mongo1.replica - 192.168.33.21
mongo2.replica - 192.168.33.22

Dependencies

Depends of a Vagrant plugin called "librarian-puppet".

To install use:

vagrant plugin install vagrant-librarian-puppet

Running

vagrant up

Configuring mongo replicasets

vagrant ssh db1
mongo
rs.initiate()
rs.conf()
rs.add("mongo1.replica")
rs.add("mongo2.replica")

Look at image below to see everything working.

alt tag

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages