Merge pull request #155 from leseb/ice-support

Add support for Intank Ceph Enterprise
pull/156/head
Leseb 2014-12-16 14:49:08 +01:00
commit 879025f08c
4 changed files with 77 additions and 6 deletions

View File

@ -28,8 +28,46 @@
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" 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: Create package directory
file: >
path=/tmp/ice_repo
state=directory
owner=root
group=root
mode=0644
when: ceph_stable_ice
- name: Get ICE packages
get_url: >
url_username={{ ceph_stable_ice_user }}
url_password={{ ceph_stable_ice_password }}
url=https://download.inktank.com/enterprise/{{ ceph_stable_ice_version }}/ICE-{{ ceph_stable_ice_version }}-rhel7.tar.gz
dest=/tmp/ice_repo/ICE-{{ ceph_stable_ice_version }}-rhel7.tar.gz
when: ceph_stable_ice
- name: Stat extracted repo files
stat: >
path=/tmp/ice_repo/repodata/repomd.xml
register: repo_exist
- name: Extract packages
shell: cd /tmp/ice_repo && tar -xzf ICE-{{ ceph_stable_ice_version }}-rhel7.tar.gz
when: ceph_stable_ice and repo_exist.stat.exists == False
- name: Move the extracted packages
shell: mv /tmp/ice_repo/ceph/*/* /tmp/ice_repo
when: ceph_stable_ice and repo_exist.stat.exists == False
- name: Create repository
template: >
src=ice.repo.j2
dest=/etc/yum.repos.d/ice.repo
owner=root
group=root
mode=0644
when: ceph_stable_ice
- name: Install Ceph - name: Install Ceph
yum: > yum: >
name=ceph name=ceph
state=latest state=latest

View File

@ -11,6 +11,14 @@
fail: "msg=Distribution not supported {{ ansible_os_family }}" fail: "msg=Distribution not supported {{ ansible_os_family }}"
when: "ansible_os_family not in ['Debian', 'RedHat']" when: "ansible_os_family not in ['Debian', 'RedHat']"
- name: Fail on wrong distribution with wrong repo
fail: "msg=Inktank Ceph Enterprise can not be installed on {{ ansible_os_family }}, Red Hat Enterprise Linux 7 only"
when: ansible_os_family == 'Debian' and ceph_stable_ice
- name: Fail on wrong distribution with wrong repo
fail: "msg=Inktank Ceph Enterprise can not be installed on {{ ansible_os_family }}i {{ ansible_distribution_major_version }}, Red Hat Enterprise Linux 7 only"
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version != '7' and ceph_stable_ice
- include: install_on_redhat.yml - include: install_on_redhat.yml
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'

View File

@ -0,0 +1,8 @@
# {{ ansible_managed }}
[ice]
name=Inktank Ceph Enterprise - local packages for Ceph
baseurl=file:///tmp/ice_repo
enabled=1
gpgcheck=0
protect=1
priority=1

View File

@ -1,13 +1,16 @@
--- ---
# You can override vars by using host or group vars # You can override vars by using host or group vars
## Setup options #########
# # INSTALL
#########
# ACTIVATE THE FSID VARIABLE FOR NON-VAGRANT DEPLOYMENT # /!\ EITHER ACTIVE ceph_stable OR ceph_stable_ice OR ceph_dev /!\
fsid: "{{ cluster_uuid.stdout }}"
## Packages branch # STABLE
########
# COMMUNITY VERSION
ceph_stable: true # use ceph stable branch ceph_stable: true # use ceph stable branch
ceph_stable_key: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc ceph_stable_key: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
ceph_stable_release: giant # ceph stable release ceph_stable_release: giant # ceph stable release
@ -16,6 +19,15 @@ ceph_stable_release: giant # ceph stable release
# # supported distros are el6, rhel6, f18, f19, opensuse12.2, sles11, centos7 (see http://ceph.com/rpm-firefly/) # # supported distros are el6, rhel6, f18, f19, opensuse12.2, sles11, centos7 (see http://ceph.com/rpm-firefly/)
ceph_stable_redhat_distro: el7 ceph_stable_redhat_distro: el7
# ENTERPRISE VERSION
ceph_stable_ice: false # use Inktank Ceph Enterprise
#ceph_stable_ice_version:
#ceph_stable_ice_user:
#ceph_stable_ice_password:
# DEV
# ###
ceph_dev: false # use ceph development branch ceph_dev: false # use ceph development branch
ceph_dev_key: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc ceph_dev_key: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc
ceph_dev_branch: master # development branch you would like to use e.g: master, wip-hack ceph_dev_branch: master # development branch you would like to use e.g: master, wip-hack
@ -25,8 +37,13 @@ ceph_dev_branch: master # development branch you would like to use e.g: master,
# For rhel, please pay attention to the versions: 'rhel6 3' or 'rhel 4', the fullname is _very_ important. # For rhel, please pay attention to the versions: 'rhel6 3' or 'rhel 4', the fullname is _very_ important.
ceph_dev_redhat_distro: centos7 ceph_dev_redhat_distro: centos7
###############
# CONFIGURATION
###############
## Ceph options ## Ceph options
# #
fsid: "{{ cluster_uuid.stdout }}"
cephx: true cephx: true
cephx_require_signatures: true # Kernel RBD does NOT support signatures! cephx_require_signatures: true # Kernel RBD does NOT support signatures!
cephx_cluster_require_signatures: true cephx_cluster_require_signatures: true