Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save freddielunchbird/10571739497394b78c366c086b7cfbd9 to your computer and use it in GitHub Desktop.
Save freddielunchbird/10571739497394b78c366c086b7cfbd9 to your computer and use it in GitHub Desktop.
Create cluster: one replica set (no config server, no mongos).
{
"operation": "createJob",
"job": {
"command": "create_cluster",
"job_data": {
"type": "mongodb",
"ssh_user": "csjpeter",
"ssh_keyfile": "/home/csjpeter/.ssh/id_rsa",
"api_id": 1,
"user_id": 1,
"vendor": "percona",
"mongodb_version": "3.2",
"replica_sets": [{
"rs": "my_rs_1",
"members": [{
"address": "ip4:27017"
}, {
"address": "ip5:27017"
}, {
"address": "ip6:27017"
}]
}],
"mongodb_user": "csjpeter",
"mongodb_password": "pwd",
"cluster_type": "mongod"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment