Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix when clauses for installation of ceph RPM #684

Merged
merged 2 commits into from
Apr 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions roles/ceph-common/tasks/installs/install_on_redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when: not ceph_stable_rh_storage

# include Infernalis in the set of releases that do not have
# a separate ceph-mon package or ceph-osd package
# Note: Red Hat Ceph Storage is different, DOES separate them even in hammer

- set_fact: >
ceph_stable_rel_pkg="{{ ceph_stable_releases | union([ 'infernalis' ]) }}"

- name: install distro or red hat storage ceph mon
yum:
name: "{{ item }}"
Expand All @@ -44,11 +51,10 @@
- ceph
- ceph-mon
when:
(ceph_origin == "distro" or ceph_stable_rh_storage) and
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_rel_pkg)) and
mon_group_name in group_names and
ansible_pkg_mgr == "yum" and
ceph_stable and
ceph_stable_release not in ceph_stable_releases
ansible_pkg_mgr == "yum"

- name: install distro or red hat storage ceph mon
dnf:
Expand All @@ -58,11 +64,10 @@
- ceph
- ceph-mon
when:
(ceph_origin == "distro" or ceph_stable_rh_storage) and
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_rel_pkg)) and
mon_group_name in group_names and
ansible_pkg_mgr == "dnf" and
ceph_stable and
ceph_stable_release not in ceph_stable_releases
ansible_pkg_mgr == "dnf"

- name: install distro or red hat storage ceph osd
yum:
Expand All @@ -72,11 +77,10 @@
- ceph
- ceph-osd
when:
(ceph_origin == "distro" or ceph_stable_rh_storage) and
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_rel_pkg)) and
osd_group_name in group_names and
ansible_pkg_mgr == "yum" and
ceph_stable and
ceph_stable_release not in ceph_stable_releases
ansible_pkg_mgr == "yum"

- name: install distro or red hat storage ceph osd
dnf:
Expand All @@ -86,11 +90,10 @@
- ceph
- ceph-osd
when:
(ceph_origin == "distro" or ceph_stable_rh_storage) and
(ceph_origin == "distro" or ceph_stable_rh_storage or
(ceph_stable and ceph_stable_release not in ceph_stable_rel_pkg)) and
osd_group_name in group_names and
ansible_pkg_mgr == "dnf" and
ceph_stable and
ceph_stable_release not in ceph_stable_releases
ansible_pkg_mgr == "dnf"

- name: install ceph-test
yum:
Expand Down