]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make RHEL installs honor ceph_origin: distro 559/head
authorChris St. Pierre <chris.a.st.pierre@gmail.com>
Tue, 23 Feb 2016 17:30:26 +0000 (11:30 -0600)
committerChris St. Pierre <chris.a.st.pierre@gmail.com>
Tue, 23 Feb 2016 17:30:26 +0000 (11:30 -0600)
Installs on RHEL with ceph_origin set to distro previously would fail
because no packages would get installed, but all of the checks passed
fine. This adds support for ceph_origin: distro, simply installing the
packages using yum/dnf and assuming that the sysadmin has provided a
repository containing them.

This also supports the use case where Satellite or a similar local
mirror is in use, and the admin does not or cannot use the additional
repositories the role would otherwise add.

roles/ceph-common/tasks/installs/install_on_redhat.yml

index 5e7018d51d2b328ebd24088fc64cb4669d8191eb..021ec580291180de17ea91d2a04a4f565d1d3b0a 100644 (file)
@@ -23,7 +23,7 @@
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
   when: not ceph_stable_rh_storage
 
-- name: install red hat storage ceph mon
+- name: install distro or red hat storage ceph mon
   yum:
     name: "{{ item }}"
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
     - ceph
     - ceph-mon
   when:
-    ceph_stable_rh_storage and
+    (ceph_origin == "distro" or ceph_stable_rh_storage) and
     mon_group_name in group_names and
     ansible_pkg_mgr == "yum"
 
-- name: install red hat storage ceph mon
+- name: install distro or red hat storage ceph mon
   dnf:
     name: "{{ item }}"
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
     - ceph
     - ceph-mon
   when:
-    ceph_stable_rh_storage and
+    (ceph_origin == "distro" or ceph_stable_rh_storage) and
     mon_group_name in group_names and
     ansible_pkg_mgr == "dnf"
 
-- name: install red hat storage ceph osd
+- name: install distro or red hat storage ceph osd
   yum:
     name: "{{ item }}"
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
     - ceph
     - ceph-osd
   when:
-    ceph_stable_rh_storage and
+    (ceph_origin == "distro" or ceph_stable_rh_storage) and
     osd_group_name in group_names and
     ansible_pkg_mgr == "yum"
 
-- name: install red hat storage ceph osd
+- name: install distro or red hat storage ceph osd
   dnf:
     name: "{{ item }}"
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
@@ -67,7 +67,7 @@
     - ceph
     - ceph-osd
   when:
-    ceph_stable_rh_storage and
+    (ceph_origin == "distro" or ceph_stable_rh_storage) and
     osd_group_name in group_names and
     ansible_pkg_mgr == "dnf"