-
Notifications
You must be signed in to change notification settings - Fork 0
/
hosts
36 lines (29 loc) · 1.14 KB
/
hosts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#The site wide list of mongodb servers
# the mongo servers need a mongod_port variable set. It also contains the shards replica set names to create
[mongo_servers]
mongo1 shardReplica=shard1 mongod_port=2710 ansible_host=ec2-52-42-130-155.us-west-2.compute.amazonaws.com
mongo2 shardReplica=shard1 mongod_port=2710 ansible_host=ec2-52-40-168-91.us-west-2.compute.amazonaws.com
mongo3 shardReplica=shard2 mongod_port=2710 ansible_host=ec2-34-216-72-109.us-west-2.compute.amazonaws.com
mongo4 shardReplica=shard2 mongod_port=2710 ansible_host=ec2-54-212-1-50.us-west-2.compute.amazonaws.com
[shardInit]
mongo1
mongo3
#The list of servers where replication should happen, by default include all servers
[replication_servers]
mongo4
mongo3
mongo1
mongo2
#The list of mongodb configuration servers, make sure it is 1 or 3
[mongoc_servers]
mongo1
mongo2
mongo3
#The list of servers where mongos servers would run.
[mongos_servers]
mongos1 ansible_host=ec2-18-237-118-157.us-west-2.compute.amazonaws.com
mongos2 ansible_host=ec2-54-218-77-164.us-west-2.compute.amazonaws.com
[all:vars]
ansible_connection=ssh
ansible_ssh_user=snwbr
ansible_ssh_pass={{ ssh_user_pass }}