Merge "CI: cephadm: Fix EL9 (Rocky)"

This commit is contained in:
Zuul 2023-02-27 12:57:31 +00:00 committed by Gerrit Code Review
commit 47a73ac4f1
4 changed files with 25 additions and 9 deletions

@ -1,12 +1,6 @@
---
- include_tasks: pkg_{{ ansible_os_family | lower }}.yml
- name: Install cephadm
package:
name: cephadm
state: present
become: True
- name: Ensure /etc/ceph exists
file:
path: /etc/ceph
@ -42,13 +36,15 @@
mon_ip: "{{ hostvars[inventory_hostname]['ansible_'+api_interface_name].ipv4.address }}"
command:
cmd: >
cephadm bootstrap
cephadm
--docker
bootstrap
--ssh-private-key=/etc/ceph/cephadm.id
--ssh-public-key=/etc/ceph/cephadm.pub
--skip-monitoring-stack
--skip-dashboard
--skip-firewalld
--mon-addrv='[v2:{{ mon_ip }}:3300,v1:{{ mon_ip }}:6789]'
--mon-ip {{ mon_ip }}
become: True
register: cephadm_bootstrap_output
@ -74,7 +70,7 @@
command:
cmd: >
cephadm shell --
bash /var/run/ceph/commands.sh
bash -x /var/run/ceph/commands.sh
become: True
# TODO(mnasiadka): Fix merge_configs to support tabs

@ -12,3 +12,9 @@
filename: ceph
become: True
when: not cephadm_use_package_from_distribution | bool
- name: Install cephadm
apt:
name: cephadm
install_recommends: False
become: True

@ -21,3 +21,9 @@
loop: "{{ cephadm_ceph_rpm_repos }}"
become: True
when: not cephadm_use_package_from_distribution
- name: Install cephadm
dnf:
name: "cephadm"
install_weak_deps: False
become: True

@ -118,6 +118,14 @@ enable_rabbitmq: "no"
{% endif %}
{% if scenario == "cephadm" %}
{% if ansible_facts.distribution == "Rocky" %}
docker_custom_config:
default-ulimits:
nofile:
Name: nofile
Hard: 1048576
Soft: 1048576
{% endif %}
# kolla-ansible vars
enable_cinder: "yes"
# External Ceph