mirror of https://github.com/ceph/ceph-ansible.git
commit
f214051e6a
|
@ -8,12 +8,20 @@
|
||||||
#fsid:
|
#fsid:
|
||||||
|
|
||||||
## Packages branch
|
## Packages branch
|
||||||
|
ceph_key: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
|
||||||
ceph_stable: true # use ceph stable branch
|
ceph_stable: true # use ceph stable branch
|
||||||
ceph_stable_release: firefly # ceph stable release
|
ceph_stable_release: firefly # ceph stable release
|
||||||
redhat_distro: el6 # supported distros are el6, rhel6, f18, f19, opensuse12.2, sles11
|
|
||||||
|
# This option is needed for _both_ stable and dev version, so please always fill the right version
|
||||||
|
# # supported distros are el6, rhel6, f18, f19, opensuse12.2, sles11, centos7 (see http://ceph.com/rpm-firefly/)
|
||||||
|
ceph_stable_redhat_distro: el7
|
||||||
|
|
||||||
ceph_dev: false # use ceph developement branch
|
ceph_dev: false # use ceph developement branch
|
||||||
ceph_dev_branch: master # developement branch you would like to use e.g: master, wip-hack
|
ceph_dev_branch: master # developement branch you would like to use e.g: master, wip-hack
|
||||||
|
# supported distros are centos6, centos7, fc17, fc18, fc19, fc20, fedora17, fedora18,
|
||||||
|
# fedora19, fedora20, opensuse12, sles0. (see http://gitbuilder.ceph.com/).
|
||||||
|
# For rhel, please pay attention to the versions: 'rhel6 3' or 'rhel 4', the fullname is _very_ important.
|
||||||
|
ceph_dev_redhat_distro: centos7
|
||||||
|
|
||||||
## Ceph options
|
## Ceph options
|
||||||
#
|
#
|
||||||
|
|
|
@ -22,19 +22,19 @@
|
||||||
- hdparm
|
- hdparm
|
||||||
|
|
||||||
- name: Install the Ceph stable repository key
|
- name: Install the Ceph stable repository key
|
||||||
rpm_key: key=cephstable.asc state=present
|
rpm_key: key={{ ceph_key }} state=present
|
||||||
when: ceph_stable
|
when: ceph_stable
|
||||||
|
|
||||||
- name: Install the Ceph developement repository key
|
- name: Install the Ceph developement repository key
|
||||||
rpm_key: key=cephdev.asc state=present
|
rpm_key: key={{ ceph_key }} state=present
|
||||||
when: ceph_dev
|
when: ceph_dev
|
||||||
|
|
||||||
- name: Add Ceph stable repository
|
- name: Add Ceph stable repository
|
||||||
command: rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ redhat_distro }}/noarch/ceph-release-1-0.el6.noarch.rpm creates=/etc/yum.repos.d/cephstable.repo
|
command: rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ redhat_distro }}/noarch/ceph-release-1-0.el6.noarch.rpm creates=/etc/yum.repos.d/ceph.repo
|
||||||
when: ceph_stable
|
when: ceph_stable
|
||||||
|
|
||||||
- name: Add Ceph development repository
|
- name: Add Ceph development repository
|
||||||
command: rpm -U http://gitbuilder.ceph.com/ceph-rpm-{{ ansible_lsb.codename }}-x86_64-basic/ref/{{ ceph_dev_branch }}/noarch/ceph-release-1-0.el6.noarch.rpm {{ ansible_lsb.codename }} main creates=/etc/yum.repos.d/cephdev.repo
|
command: rpm -U 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 creates=/etc/yum.repos.d/ceph.repo
|
||||||
when: ceph_dev
|
when: ceph_dev
|
||||||
|
|
||||||
- name: Install Ceph
|
- name: Install Ceph
|
||||||
|
@ -51,3 +51,4 @@
|
||||||
|
|
||||||
- name: Disable OSD directory parsing by updatedb
|
- name: Disable OSD directory parsing by updatedb
|
||||||
command: updatedb -e /var/lib/ceph
|
command: updatedb -e /var/lib/ceph
|
||||||
|
ignore_errors: true
|
||||||
|
|
Loading…
Reference in New Issue