2016-02-08 05:30:32 +08:00
|
|
|
---
|
|
|
|
# Defines deployment design and assigns role to server groups
|
|
|
|
|
2017-04-11 20:20:11 +08:00
|
|
|
- hosts:
|
|
|
|
- mons
|
|
|
|
- agents
|
|
|
|
- osds
|
|
|
|
- mdss
|
|
|
|
- rgws
|
|
|
|
- nfss
|
|
|
|
- restapis
|
|
|
|
- rbdmirrors
|
|
|
|
- clients
|
|
|
|
- iscsigws
|
|
|
|
- mgrs
|
2017-08-30 16:44:18 +08:00
|
|
|
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
|
|
|
|
2017-08-30 16:44:18 +08:00
|
|
|
tasks:
|
|
|
|
- name: gather and delegate facts
|
|
|
|
setup:
|
|
|
|
delegate_to: "{{ item }}"
|
|
|
|
delegate_facts: True
|
|
|
|
with_items: "{{ groups['all'] }}"
|
2016-08-22 16:35:24 +08:00
|
|
|
|
2016-02-08 05:30:32 +08:00
|
|
|
- hosts: mons
|
|
|
|
become: True
|
2016-08-23 01:42:27 +08:00
|
|
|
gather_facts: false
|
2016-02-08 05:30:32 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-docker-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-mon
|
2016-02-08 05:30:32 +08:00
|
|
|
serial: 1 # MUST be '1' WHEN DEPLOYING MONITORS ON DOCKER CONTAINERS
|
|
|
|
|
|
|
|
- hosts: osds
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2016-02-08 05:30:32 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-docker-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-osd
|
2016-02-08 05:30:32 +08:00
|
|
|
|
|
|
|
- hosts: mdss
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2016-02-08 05:30:32 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-docker-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-mds
|
2016-02-08 05:30:32 +08:00
|
|
|
|
|
|
|
- hosts: rgws
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2016-02-08 05:30:32 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-docker-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-rgw
|
2016-02-08 05:30:32 +08:00
|
|
|
|
2016-05-06 02:20:03 +08:00
|
|
|
- hosts: nfss
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2016-05-06 02:20:03 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-docker-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-nfs
|
2016-05-06 02:20:03 +08:00
|
|
|
|
2016-08-23 02:23:48 +08:00
|
|
|
- hosts: rbd_mirrors
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2016-08-23 02:23:48 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-docker-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-rbd-mirror
|
2016-08-23 02:23:48 +08:00
|
|
|
|
2016-02-08 05:30:32 +08:00
|
|
|
- hosts: restapis
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2016-02-08 05:30:32 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-docker-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-restapi
|
2017-03-16 17:17:08 +08:00
|
|
|
|
|
|
|
- hosts: mgrs
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2017-03-16 17:17:08 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- { role: ceph-defaults, when: "ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel" }
|
|
|
|
- { role: ceph-docker-common, when: "ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel" }
|
2017-08-04 22:57:46 +08:00
|
|
|
- { role: ceph-config, when: "ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel" }
|
2017-05-04 17:14:58 +08:00
|
|
|
- { role: ceph-mgr, when: "ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel" }
|
2017-07-07 23:01:58 +08:00
|
|
|
|
|
|
|
- hosts: clients
|
|
|
|
become: True
|
2017-08-25 20:36:07 +08:00
|
|
|
gather_facts: false
|
2017-07-07 23:01:58 +08:00
|
|
|
roles:
|
2017-07-29 04:48:13 +08:00
|
|
|
- ceph-defaults
|
|
|
|
- ceph-common
|
2017-08-04 22:57:46 +08:00
|
|
|
- ceph-config
|
2017-07-07 23:01:58 +08:00
|
|
|
- ceph-client
|