# is not needed for versions after infernalis.
#use_server_package_split: true
-# /!\ EITHER ACTIVE ceph_stable OR ceph_stable_ice OR ceph_stable_uca OR ceph_dev OR ceph_custom /!\
+# /!\ EITHER ACTIVE ceph_stable OR ceph_stable_uca OR ceph_dev OR ceph_custom /!\
#debian_package_dependencies:
# - python-pycurl
# # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
#ceph_stable_redhat_distro: el7
-# ENTERPRISE VERSION ICE (old, prior to the 1.3)
-#ceph_stable_ice: false # use Inktank Ceph Enterprise
-#ceph_stable_ice_url: https://download.inktank.com/enterprise
-# these two variables are used in `with_items` and starting
-# with ansible 2.0 these need to be defined even if the tasks's
-# `when` clause doesn't evaluate to true
-#ceph_stable_ice_temp_path: /opt/ICE/ceph-repo/
-#ceph_stable_ice_kmod: 3.10-0.1.20140702gitdc9ac62.el7.x86_64
-#ceph_stable_ice_distro: rhel7 # Please check the download website for the supported versions.
-#ceph_stable_ice_version: 1.2.2
-#ceph_stable_ice_kmod_version: 1.2
-#ceph_stable_ice_user: # htaccess user
-#ceph_stable_ice_password: # htaccess password
-
# ENTERPRISE VERSION RED HAT STORAGE (from 1.3)
# This version is only supported on RHEL >= 7.1
# As of RHEL 7.1, libceph.ko and rbd.ko are now included in Red Hat's kernel
* Install source, choose one of these:
* `ceph_stable`
* `ceph_dev`
- * `ceph_stable_ice`
* `ceph_stable_rh_storage`
* `ceph_custom`
* `journal_size`
# is not needed for versions after infernalis.
use_server_package_split: true
-# /!\ EITHER ACTIVE ceph_stable OR ceph_stable_ice OR ceph_stable_uca OR ceph_dev OR ceph_custom /!\
+# /!\ EITHER ACTIVE ceph_stable OR ceph_stable_uca OR ceph_dev OR ceph_custom /!\
debian_package_dependencies:
- python-pycurl
# # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
ceph_stable_redhat_distro: el7
-# ENTERPRISE VERSION ICE (old, prior to the 1.3)
-ceph_stable_ice: false # use Inktank Ceph Enterprise
-#ceph_stable_ice_url: https://download.inktank.com/enterprise
-# these two variables are used in `with_items` and starting
-# with ansible 2.0 these need to be defined even if the tasks's
-# `when` clause doesn't evaluate to true
-ceph_stable_ice_temp_path: /opt/ICE/ceph-repo/
-ceph_stable_ice_kmod: 3.10-0.1.20140702gitdc9ac62.el7.x86_64
-#ceph_stable_ice_distro: rhel7 # Please check the download website for the supported versions.
-#ceph_stable_ice_version: 1.2.2
-#ceph_stable_ice_kmod_version: 1.2
-#ceph_stable_ice_user: # htaccess user
-#ceph_stable_ice_password: # htaccess password
-
# ENTERPRISE VERSION RED HAT STORAGE (from 1.3)
# This version is only supported on RHEL >= 7.1
# As of RHEL 7.1, libceph.ko and rbd.ko are now included in Red Hat's kernel
+++ /dev/null
------BEGIN PGP PUBLIC KEY BLOCK-----
-Version: GnuPG v1.4.11 (GNU/Linux)
-
-mQINBFJxnXIBEAC4QhhJgpTJFeZ9pHLuGseS2C/MQwYzcSyJEoJoEnbooS8uwNZt
-fMHBwcacML/Yq7CkVCXYbMM1tQVTTU31wnAZIb5nrvYHL4MNWoTzEFIEjAD0VHZW
-bRmydFa9aDNjwrVE4xXhvMClmrv51we4qW+Ht5s3I8nn+hJRc6oeFKw7FhYqAsyL
-htYRzNg0Ji+MiqBgeAC6IEwmKK/lsmz4FK/5RLnu9tKMJhziQZNQbHvv5pntVcnI
-M4UJdUtepaf/GUk256MmFW1Qmfv2KxUlEcms1fPusBFjQDnCZi+qRuezTjpPsLAx
-ramqc8Dj6NfylSm374CKnkpQSB6Mn+78cwr2SzUB3mUoXq/IgZ3RRhNhVV6NzZpM
-u9IvHE+xL80c/eGXgIx/q8uP8Mmi3PJxt+WS+X0m5pvbIEFZ305vya6ovlUK+kIV
-MnWj8jcMIgFO2LM+UM51W5jrFjmgB/GcIof2G3iddM6r+ZGCqqzw/8blGwOy+sny
-FsOQ1wwb4/ew2ehxU7fDSH/3Ohujs+2qVOsQUUSx6upm5cGLyJzF8YgqRz7NkPG/
-7d9XA3OaO8tV5NtwU2jKIn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eveamUs8aKVIpz
-lNeHHf/aU/NA+w4rLNs49rQeKFOCA5ySSb55R6EBABtCnUdul3Xye5azKMfTVA07
-PweRzqCUKZuXYmbaZ8DzalrNL7a8btCHfzII8ohj+br1WeynFMpYqhgKfitlM/Ie
-KlnNRKxeDgU6NN27y6DKIzzrdpz36yNaFtdn3O0XcNzayj80qJTLNA96nI0bcpoy
-xvbSx50M7NRbYugFLkz54bo8U3fOXKdw7qC2eLqhq1RvQEt05qz1EvwA9Is=
-=0eqL
------END PGP PUBLIC KEY BLOCK-----
- ceph_origin == 'upstream'
- not ceph_stable
- not ceph_dev
- - not ceph_stable_ice
- not ceph_stable_rh_storage
- not ceph_stable_uca
tags:
state: present
when: ceph_dev
-- name: install intank ceph enterprise repository key
- apt_key:
- data: "{{ lookup('file', role_path+'/files/cephstableice.asc') }}"
- state: present
- when: ceph_stable_ice
-
- name: add ceph stable repository
apt_repository:
repo: "deb {{ ceph_stable_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
changed_when: false
when: ceph_dev
-- name: add inktank ceph enterprise repository
- apt_repository:
- repo: "deb file://{{ ceph_stable_ice_temp_path }} {{ ansible_lsb.codename }} main"
- state: present
- changed_when: false
- when: ceph_stable_ice
-
- name: add ubuntu cloud archive key package
apt:
pkg: ubuntu-cloud-keyring
- ceph_test
- ansible_pkg_mgr == "dnf"
-- 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
- - ansible_pkg_mgr == "yum"
-
-- name: install Inktank Ceph Enterprise RBD Kernel modules
- dnf:
- 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
- - ansible_pkg_mgr == "dnf"
-
- name: install rados gateway
yum:
name: ceph-radosgw
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: add ceph stable repository
yum:
name: http://download.ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
- ceph_dev
- ansible_pkg_mgr == "dnf"
-- name: add inktank ceph enterprise repository
- template:
- src: "{{ role_path }}/templates/redhat_ice_repo.j2"
- dest: /etc/yum.repos.d/ice.repo
- owner: root
- group: root
- mode: 0644
- when: ceph_stable_ice
-
- name: add custom repo
get_url:
url: "{{ ceph_custom_repo }}"
- include: ./misc/system_tuning.yml
when: osd_group_name in group_names
-- include: ./pre_requisites/prerequisite_ice.yml
- when: ceph_stable_ice
- tags:
- - package-install
-
- include: ./pre_requisites/prerequisite_rh_storage_iso_install.yml
when:
- ceph_stable_rh_storage
+++ /dev/null
----
-- name: create ice package directory
- file:
- path: "{{ ceph_stable_ice_temp_path }}"
- 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: "{{ ceph_stable_ice_url }}/{{ ceph_stable_ice_version }}/ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz"
- dest: "{{ ceph_stable_ice_temp_path }}/ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz"
- when: ceph_stable_ice
-
-- name: get ice Kernel Modules
- get_url:
- url_username: "{{ ceph_stable_ice_user }}"
- url_password: "{{ ceph_stable_ice_password }}"
- url: "{{ ceph_stable_ice_url }}/{{ ceph_stable_ice_kmod_version }}/{{ item }}"
- dest: "{{ ceph_stable_ice_temp_path }}"
- with_items:
- - kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm
- - kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm
- when:
- - ceph_stable_ice
- - ansible_os_family == 'RedHat'
-
-- name: stat extracted ice repo files
- stat:
- path: "{{ ceph_stable_ice_temp_path }}/ice_setup.py"
- register: repo_exist
- when: ceph_stable_ice
-
-- name: extract ice packages
- shell: tar -xzf ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
- args:
- chdir: "{{ ceph_stable_ice_temp_path }}"
- changed_when: false
- when:
- - ceph_stable_ice
- - repo_exist.stat.exists == False
-
-- name: move ice extracted packages
- shell: "mv {{ ceph_stable_ice_temp_path }}/ceph/*/* {{ ceph_stable_ice_temp_path }}"
- changed_when: false
- when:
- - ceph_stable_ice
- - repo_exist.stat.exists == False
+++ /dev/null
-# {{ ansible_managed }}
-[ice]
-name=Inktank Ceph Enterprise - local packages for Ceph
-baseurl=file://{{ ceph_stable_ice_temp_path }}
-enabled=1
-gpgcheck=1
-type=rpm-md
-priority=1
-gpgkey=file://{{ ceph_stable_ice_temp_path }}/release.asc