Common: Do not install ceph-mgr packages on jewel

ceph-mgr tasks has to be skipped on jewel.

Fix: #1494

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/1499/head
Guillaume Abrioux 2017-05-04 11:14:58 +02:00
parent 5b24de6529
commit 48bd807508
8 changed files with 16 additions and 6 deletions

View File

@ -62,4 +62,6 @@
pkg: ceph-mgr
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
when: mgr_group_name in group_names
when:
- mgr_group_name in group_names
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel

View File

@ -147,4 +147,6 @@
package:
name: ceph-mgr
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when: mgr_group_name in group_names
when:
- mgr_group_name in group_names
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel

View File

@ -95,4 +95,6 @@
apt:
pkg: ceph-mgr
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when: mgr_group_name in group_names
when:
- mgr_group_name in group_names
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel

View File

@ -75,4 +75,6 @@
package:
name: ceph-mgr
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when: mgr_group_name in group_names
when:
- mgr_group_name in group_names
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel

View File

@ -52,6 +52,7 @@
- cephx
- groups.get(mgr_group_name, []) | length > 0
- inventory_hostname == groups[mon_group_name]|last
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel
with_items: "{{ groups.get(mgr_group_name, []) }}"
- include: set_osd_pool_default_pg_num.yml

View File

@ -125,3 +125,4 @@
- item.stat.exists == true
when:
- inventory_hostname == groups[mon_group_name]|last
- ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel

View File

@ -55,4 +55,4 @@
- hosts: mgrs
become: True
roles:
- ceph-mgr
- { role: ceph-mgr, when: "ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel" }

View File

@ -103,4 +103,4 @@
gather_facts: false
become: True
roles:
- ceph-mgr
- { role: ceph-mgr, when: "ceph_release_num.{{ ceph_stable_release }} > ceph_release_num.jewel" }