ceph-ansible/roles/ceph-common/tasks/installs/install_on_redhat.yml

123 lines
2.9 KiB
YAML
Raw Normal View History

2014-09-05 03:14:11 +08:00
---
- name: install dependencies
yum: >
name={{ item }}
2014-09-05 03:14:11 +08:00
state=present
with_items:
- python-pycurl
- ntp
- hdparm
- yum-plugin-priorities.noarch
- epel-release
2014-09-05 03:14:11 +08:00
- name: install the ceph stable repository key
2014-09-05 03:14:11 +08:00
rpm_key: >
key={{ ceph_stable_key }}
2014-09-05 03:14:11 +08:00
state=present
when: ceph_stable
- name: install the ceph development repository key
2014-09-05 03:14:11 +08:00
rpm_key: >
key={{ ceph_dev_key }}
2014-09-05 03:14:11 +08:00
state=present
when: ceph_dev
- name: install inktank ceph enterprise repository key
rpm_key: >
key={{ ceph_stable_ice_temp_path }}/release.asc
state=present
when: ceph_stable_ice
- name: install red hat storage repository key
rpm_key: >
key={{ ceph_stable_rh_storage_repository_path }}/RPM-GPG-KEY-redhat-release
state=present
when:
ceph_stable_rh_storage and
ceph_stable_rh_storage_iso_install
- name: add ceph stable repository
yum: name=http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
changed_when: false
2014-09-05 03:14:11 +08:00
when: ceph_stable
- name: add ceph development repository
yum: name=http://gitbuilder.ceph.com/ceph-rpm-{{ ceph_dev_redhat_distro }}-x86_64-basic/ref/{{ ceph_dev_branch }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro }}.noarch.rpm
changed_when: false
2014-09-05 03:14:11 +08:00
when: ceph_dev
- name: add inktank ceph enterprise repository
template: >
src=redhat_ice_repo.j2
dest=/etc/yum.repos.d/ice.repo
owner=root
group=root
mode=0644
when: ceph_stable_ice
- name: add red hat storage repository
template: >
src=redhat_storage_repo.j2
dest=/etc/yum.repos.d/rh_storage.repo
owner=root
group=root
mode=0644
when:
ceph_stable_rh_storage and
ceph_stable_rh_storage_iso_install
- name: install ceph
yum: >
name=ceph
state=latest
when: not ceph_stable_rh_storage
- name: install red hat storage ceph mon
yum: >
name={{ item }}
state=latest
with_items:
- ceph
- ceph-mon
when:
ceph_stable_rh_storage and
mon_group_name in group_names
- name: install red hat storage ceph osd
yum: >
name={{ item }}
state=latest
with_items:
- ceph
- ceph-osd
when:
ceph_stable_rh_storage and
osd_group_name in group_names
- name: install Inktank Ceph Enterprise RBD Kernel modules
yum: >
name={{ item }}
with_items:
- "{{ ceph_stable_ice_temp_path }}/kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm"
- "{{ ceph_stable_ice_temp_path }}/kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm"
when: ceph_stable_ice
- name: install rados gateway
yum: >
name=ceph-radosgw
state=latest
when:
rgw_group_name in group_names
- name: configure rbd clients directories
file: >
path={{ item }}
state=directory
owner=qemu
group=libvirtd
mode=0755
with_items:
- rbd_client_log_path
- rbd_client_admin_socket_path
when: rbd_client_directories