mirror of https://github.com/ceph/ceph-ansible.git
common: make ceph_stable_release mandatory
It is mandatory now to set the Ceph version you want to install, e.g: ceph_stable_release: luminous To find the release names, you can look at the release not doc: http://docs.ceph.com/docs/master/release-notes/ Signed-off-by: Sébastien Han <seb@redhat.com>pull/1713/head
parent
7568fa9aeb
commit
da4cce2c74
|
@ -105,7 +105,7 @@ dummy:
|
|||
#ceph_stable: false # use ceph stable branch
|
||||
#ceph_mirror: http://download.ceph.com
|
||||
#ceph_stable_key: https://download.ceph.com/keys/release.asc
|
||||
#ceph_stable_release: kraken # ceph stable release
|
||||
#ceph_stable_release: dummy
|
||||
#ceph_stable_repo: "{{ ceph_mirror }}/debian-{{ ceph_stable_release }}"
|
||||
|
||||
######################################
|
||||
|
|
|
@ -97,7 +97,7 @@ ceph_use_distro_backports: false # DEBIAN ONLY
|
|||
ceph_stable: false # use ceph stable branch
|
||||
ceph_mirror: http://download.ceph.com
|
||||
ceph_stable_key: https://download.ceph.com/keys/release.asc
|
||||
ceph_stable_release: kraken # ceph stable release
|
||||
ceph_stable_release: dummy
|
||||
ceph_stable_repo: "{{ ceph_mirror }}/debian-{{ ceph_stable_release }}"
|
||||
|
||||
######################################
|
||||
|
|
|
@ -22,6 +22,24 @@
|
|||
tags:
|
||||
- package-install
|
||||
|
||||
- name: make sure ceph_stable_release is set
|
||||
fail:
|
||||
msg: "make sure ceph_stable_release is set to a release name (e.g: luminous), http://docs.ceph.com/docs/master/release-notes/"
|
||||
when:
|
||||
- ceph_stable_release == 'dummy'
|
||||
- not ceph_rhcs
|
||||
tags:
|
||||
- package-install
|
||||
|
||||
- name: make sure ceph_stable_release is correct
|
||||
fail:
|
||||
msg: "wrong release name, see http://docs.ceph.com/docs/master/release-notes/"
|
||||
when:
|
||||
- ceph_stable_release not in ceph_release_num
|
||||
- not ceph_rhcs
|
||||
tags:
|
||||
- package-install
|
||||
|
||||
- name: verify that a method was chosen for red hat storage
|
||||
fail:
|
||||
msg: "choose between ceph_rhcs_cdn_install and ceph_rhcs_iso_install"
|
||||
|
|
|
@ -2,11 +2,3 @@
|
|||
# Set ceph_release to ceph_stable by default
|
||||
- set_fact:
|
||||
ceph_release: "{{ ceph_stable_release }}"
|
||||
|
||||
# Set ceph_release to latest known release (Which should match ceph_dev)
|
||||
- set_fact:
|
||||
ceph_release: "{{ item.key }}"
|
||||
when:
|
||||
- ceph_dev
|
||||
- ({{ item.value }} > ceph_release_num.{{ ceph_release }})
|
||||
with_dict: "{{ ceph_release_num }}"
|
||||
|
|
Loading…
Reference in New Issue