Merge pull request #623 from Symantec/feature-br1

Ability to generate repos for localmirror
pull/649/head
Leseb 2016-03-24 18:12:55 +01:00
commit 561f6b8038
1 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,51 @@
---
# Sample Playbook for local mirrors.
# Additional/optiona step to generate repos.d file for local mirrors.
# Defines deployment design and assigns role to server groups
- hosts: all
max_fail_percentage: 0
become: True
vars:
repolist:
- { src: "/<path to repo file>/localmirror_ceph.repo", dest: "/etc/yum.repos.d/ceph.repo" }
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
- hosts: restapis
become: True
roles:
- ceph-restapi