mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1822 from ceph/rhcs-container-release
ceph-docker-common: detect ceph versionpull/1826/head
commit
fa9f2313d5
|
@ -44,28 +44,39 @@
|
|||
- ceph_health.rc != 0
|
||||
- not "{{ rolling_update | default(false) }}"
|
||||
|
||||
- include: "./misc/ntp_atomic.yml"
|
||||
- include: ./misc/ntp_atomic.yml
|
||||
when:
|
||||
- is_atomic
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ntp_service_enabled
|
||||
|
||||
- include: "./misc/ntp_redhat.yml"
|
||||
- include: ./misc/ntp_redhat.yml
|
||||
when:
|
||||
- not is_atomic
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ntp_service_enabled
|
||||
|
||||
- include: "./misc/ntp_debian.yml"
|
||||
- include: ./misc/ntp_debian.yml
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- ntp_service_enabled
|
||||
|
||||
- include: "./fetch_image.yml"
|
||||
- include: fetch_image.yml
|
||||
|
||||
- name: get ceph version
|
||||
command: docker run --entrypoint /usr/bin/ceph {{ ceph_docker_registry}}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} --version
|
||||
changed_when: false
|
||||
always_run: yes
|
||||
register: ceph_version
|
||||
|
||||
- set_fact:
|
||||
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
|
||||
|
||||
- include: release.yml
|
||||
|
||||
# NOTE (jimcurtis): dirs_permissions.yml must precede fetch_configs.yml
|
||||
# # because it creates the directories needed by the latter.
|
||||
- include: ./dirs_permissions.yml
|
||||
- include: dirs_permissions.yml
|
||||
|
||||
- include: create_configs.yml
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- set_fact:
|
||||
ceph_release: jewel
|
||||
when: ceph_version.split('.')[0] | version_compare('10', '==')
|
||||
|
||||
- set_fact:
|
||||
ceph_release: kraken
|
||||
when: ceph_version.split('.')[0] | version_compare('11', '==')
|
||||
|
||||
- set_fact:
|
||||
ceph_release: luminous
|
||||
when: ceph_version.split('.')[0] | version_compare('12', '==')
|
||||
|
Loading…
Reference in New Issue