You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
360 B
23 lines
360 B
11 years ago
|
---
|
||
|
# This Playbook would deploy the whole mongodb cluster with replication and sharding.
|
||
|
|
||
|
- hosts: all
|
||
|
roles:
|
||
|
- role: common
|
||
|
|
||
|
- hosts: mongo_servers
|
||
|
roles:
|
||
|
- role: mongod
|
||
|
|
||
|
- hosts: mongoc_servers
|
||
|
roles:
|
||
|
- role: mongoc
|
||
|
|
||
|
- hosts: mongos_servers
|
||
|
roles:
|
||
|
- role: mongos
|
||
|
|
||
|
- hosts: mongo_servers
|
||
|
tasks:
|
||
|
- include: roles/mongod/tasks/shards.yml
|