]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add ICE Kernel module support for Red Hat systems 160/head
authorSébastien Han <sebastien.han@enovance.com>
Thu, 18 Dec 2014 11:20:17 +0000 (12:20 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Thu, 18 Dec 2014 11:25:17 +0000 (12:25 +0100)
Install Kernel modules from ICE for Ceph RBD.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
roles/ceph-common/tasks/install_on_redhat.yml
roles/ceph-common/tasks/main.yml
roles/ceph-common/vars/main.yml

index b849bfc084eb3d1743c94513c8a2974a78cfe13e..b5f383e4bf5e832fea7bc45434df4768a16b63eb 100644 (file)
@@ -22,7 +22,7 @@
 
 - name: Install Inktank Ceph Enterprise repository key
   rpm_key: >
-    key=file://{{ ceph_stable_ice_temp_path }}/*/release.asc
+    key=file://{{ ceph_stable_ice_temp_path }}/release.asc
     state=present
   when: ceph_stable_ice
 
   yum: >
     name=ceph
     state=latest
+
+- 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
index c13876491be125a7afe0cf4f934a12b626a3a799..bfba063bae99d1d7a94a45704e1f012696b01196 100644 (file)
   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 }}-{{ ceph_stable_ice_distro }}.tar.gz
+    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 and ansible_os_family == 'RedHat'
+
 - name: Stat extracted repo files
   stat: >
     path={{ ceph_stable_ice_temp_path }}/ice_setup.py
index 8c8b8ed634fa61ac10b8943f1c619b7b08aff306..c04701f77c117e9df8df64d20a1cb228203139d4 100644 (file)
@@ -21,11 +21,14 @@ ceph_stable_redhat_distro: el7
 \r
 # ENTERPRISE VERSION\r
 ceph_stable_ice: false # use Inktank Ceph Enterprise\r
+#ceph_stable_ice_url: https://download.inktank.com/enterprise\r
 #ceph_stable_ice_temp_path: /opt/ICE/ceph-repo/\r
-#ceph_stable_ice_distro: # Please check the download website for the supported versions.\r
-#ceph_stable_ice_version:\r
-#ceph_stable_ice_user:\r
-#ceph_stable_ice_password:\r
+#ceph_stable_ice_kmod: 3.10-0.1.20140702gitdc9ac62.el7.x86_64\r
+#ceph_stable_ice_distro: rhel7 # Please check the download website for the supported versions.\r
+#ceph_stable_ice_version: 1.2.2\r
+#ceph_stable_ice_kmod_version: 1.2\r
+#ceph_stable_ice_user: # htaccess user\r
+#ceph_stable_ice_password: # htaccess password\r
 \r
 # DEV\r
 # ###\r