]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
adds the ability to install red hat ceph storage packages on Ubuntu
authorAndrew Schoen <aschoen@redhat.com>
Tue, 8 Mar 2016 21:23:32 +0000 (15:23 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 8 Mar 2016 21:23:32 +0000 (15:23 -0600)
This will only work for jewel or later releases.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml [new file with mode: 0644]
roles/ceph-common/tasks/main.yml

diff --git a/roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml b/roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml
new file mode 100644 (file)
index 0000000..a93da14
--- /dev/null
@@ -0,0 +1,35 @@
+---
+- name: install dependencies
+  apt:
+    pkg: "{{ item }}"
+    state: present
+    update_cache: yes
+    cache_valid_time: 3600
+  with_items: debian_package_dependencies
+
+- name: install red hat storage ceph mon
+  apt:
+    name: "{{ item }}"
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
+  with_items:
+    - ceph
+    - ceph-mon
+  when:
+    mon_group_name in group_names
+
+- name: install red hat storage ceph osd
+  apt:
+    name: "{{ item }}"
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
+  with_items:
+    - ceph
+    - ceph-osd
+  when:
+    osd_group_name in group_names
+
+- name: install ceph-test
+  apt:
+    name: ceph-test
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
+  when:
+    ceph_test
index 57397e0b7dd824419d2cc5b44919b3ef58eb7353..f40a3bdb890e5759f7a3efe420534d1ff433402b 100644 (file)
     - package-install
 
 - include: ./installs/install_on_debian.yml
-  when: ansible_os_family == 'Debian'
+  when:
+    ansible_os_family == 'Debian' and
+    not ceph_stable_rh_storage
+  tags:
+    - package-install
+
+- include: ./installs/install_rh_storage_on_debian.yml
+  when:
+    ansible_os_family == 'Debian' and
+    ceph_stable_rh_storage
   tags:
     - package-install
 
 - set_fact:
     is_ceph_infernalis={{ (ceph_stable and ceph_stable_release not in ceph_stable_releases) or (ceph_dev) or (ceph_stable_rh_storage and (rh_storage_version.stdout | version_compare('0.94', '>'))) }}
 
+- set_fact:
+    is_ceph_infernalis=True
+  when:
+    ansible_os_family == 'Debian' and
+    ceph_stable_rh_storage
+
 - set_fact:
     dir_owner: ceph
     dir_group: ceph