https://github.com/netinlet/chef-mongodb_replicaset.git
Note - No Brekshelf
Note EBS JSON
{
"mongodb" : {
"replicaset_name": "mongo-rs",
"cluster_name": "mongo-rs",
"auto_configure": {
"replicaset": true
}
}
}
WITH EBS
{
"mongodb" : {
"replicaset_name": "mongo-rs",
"cluster_name": "mongo-rs",
"auto_configure": {
"replicaset": true
},
"dbpath":"/data/lib/mongodb",
"logpath":"/data/log/mongodb"
}
}
Recipes
Setup mongodb::10gen_repo mongodb::default
auto_configure mongodb::replicaset
Note - After you done with Installation.
Login into EC2
Master -
$ - mongo
> rs.intiate()
> rs.add("ip-10-123-25-111.ap-southeast-1.compute.internal:27017")
No comments:
Post a Comment