2016-03-15 04:26:16 +08:00
|
|
|
---
|
|
|
|
# Sample Playbook for local mirrors.
|
2016-05-09 15:12:01 +08:00
|
|
|
# Additional/optional step to generate repos.d file for local mirrors.
|
2016-03-15 04:26:16 +08:00
|
|
|
# Defines deployment design and assigns role to server groups
|
|
|
|
|
2016-03-24 23:54:39 +08:00
|
|
|
- hosts: all
|
2016-03-15 04:26:16 +08:00
|
|
|
max_fail_percentage: 0
|
|
|
|
become: True
|
2016-03-24 23:54:39 +08:00
|
|
|
vars:
|
|
|
|
repolist:
|
|
|
|
- { src: "/<path to repo file>/localmirror_ceph.repo", dest: "/etc/yum.repos.d/ceph.repo" }
|
2016-03-15 04:26:16 +08:00
|
|
|
tasks:
|
|
|
|
- name: Copy User provided repo files to /etc/yum.repos.d/
|
|
|
|
copy:
|
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
with_items:
|
|
|
|
- "{{ repolist }}"
|
|
|
|
|
|
|
|
- hosts: mons
|
|
|
|
become: True
|
|
|
|
roles:
|
|
|
|
- ceph-mon
|
|
|
|
|
|
|
|
- hosts: agents
|
|
|
|
become: True
|
|
|
|
roles:
|
|
|
|
- ceph-agent
|
|
|
|
|
|
|
|
- hosts: osds
|
|
|
|
become: True
|
|
|
|
roles:
|
|
|
|
- ceph-osd
|
|
|
|
|
|
|
|
- hosts: mdss
|
|
|
|
become: True
|
|
|
|
roles:
|
|
|
|
- ceph-mds
|
|
|
|
|
|
|
|
- hosts: rgws
|
|
|
|
become: True
|
|
|
|
roles:
|
|
|
|
- ceph-rgw
|
|
|
|
|
2016-05-06 02:20:03 +08:00
|
|
|
- hosts: nfss
|
|
|
|
become: True
|
|
|
|
roles:
|
|
|
|
- ceph-nfs
|
|
|
|
|
2016-03-15 04:26:16 +08:00
|
|
|
- hosts: restapis
|
|
|
|
become: True
|
|
|
|
roles:
|
|
|
|
- ceph-restapi
|
|
|
|
|