|
| 1 | +--- |
| 2 | +- name: Prevent Ceph deployment in the parallel federation deployment mode |
| 3 | + ansible.builtin.assert: |
| 4 | + that: (features.ceph is undefined) |
| 5 | + or |
| 6 | + (features.ceph | bool is false) |
| 7 | + or |
| 8 | + (groups[_frontend_group ~ '0'] is undefined) |
| 9 | + msg: Please use sequential federation deployment mode if you want to deploy Ceph. |
| 10 | + vars: |
| 11 | + _frontend_group: "{{ frontend_group | d('frontend') }}" |
| 12 | + run_once: true |
| 13 | + |
| 14 | +# We only support active Ceph releases (https://docs.ceph.com/en/latest/releases/index.html) |
| 15 | +- name: Check if specified Ceph release is supported |
| 16 | + ansible.builtin.assert: |
| 17 | + that: (features.ceph is undefined) |
| 18 | + or |
| 19 | + (features.ceph | bool is false) |
| 20 | + or |
| 21 | + ((ceph_stable_release is defined) and (ceph_stable_release in _supported)) |
| 22 | + msg: Please specify one of the supported Ceph versions {{ _supported }} in ceph_stable_release variable. |
| 23 | + vars: |
| 24 | + _supported: |
| 25 | + - reef |
| 26 | + - squid |
| 27 | + tags: [preinstall] |
| 28 | + |
| 29 | +# We only support active Ceph releases (https://docs.ceph.com/en/latest/releases/index.html) |
| 30 | +# and recommended distro families (https://docs.ceph.com/en/latest/start/os-recommendations/) |
| 31 | +# Other useful links: |
| 32 | +# - https://sigs.centos.org/storage/general/ |
| 33 | +# - https://ubuntu.com/ceph/docs/supported-ceph-versions |
| 34 | +- name: Check if Ceph feature is supported for current distro family |
| 35 | + ansible.builtin.assert: |
| 36 | + that: (features.ceph is undefined) |
| 37 | + or |
| 38 | + (features.ceph | bool is false) |
| 39 | + or |
| 40 | + ((ceph_stable_release is defined) and (_repo in _repos)) |
| 41 | + msg: Please use one of the supported linux distro families to run Ceph {{ ceph_stable_release | d('') }} version |
| 42 | + ({{ ansible_distribution }}/{{ ansible_distribution_major_version }}/{{ _repo }} combination is unsupported). |
| 43 | + vars: |
| 44 | + _repo: "{{ ceph.repo | d('community') }}" |
| 45 | + _repos: "{{ _supported[ceph_stable_release][ansible_distribution][ansible_distribution_major_version] }}" |
| 46 | + _supported: |
| 47 | + reef: # Ceph 18.2.z |
| 48 | + Debian: |
| 49 | + '11': [community] |
| 50 | + '12': [community] |
| 51 | + Ubuntu: |
| 52 | + '22': [distro, community] |
| 53 | + AlmaLinux: |
| 54 | + '9': [] # Not supported: https://tracker.ceph.com/issues/68802 |
| 55 | + RedHat: |
| 56 | + '9': [] # Not supported: https://tracker.ceph.com/issues/68802 |
| 57 | + squid: # Ceph 19.2.z |
| 58 | + Debian: |
| 59 | + '12': [community] |
| 60 | + Ubuntu: |
| 61 | + '20': [community] |
| 62 | + '22': [distro, community] |
| 63 | + '24': [distro] |
| 64 | + AlmaLinux: |
| 65 | + '9': [community] |
| 66 | + RedHat: |
| 67 | + '9': [community] |
| 68 | + tags: [preinstall] |
0 commit comments