CI: cephadm: Fix EL9 (Rocky)
CentOS Storage SIG rpms have a recommended install section that installs podman - let's stop doing that. Ceph is also suffering from the enormous open files ulimit that EL9 defaults to - let's set a default in docker engine for now. Change-Id: I41f39f520dfecec307ad3b86e1e0363570198e42
This commit is contained in:
parent
ad745bf1f8
commit
a6e28f9562
@ -1,12 +1,6 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: pkg_{{ ansible_os_family | lower }}.yml
|
- include_tasks: pkg_{{ ansible_os_family | lower }}.yml
|
||||||
|
|
||||||
- name: Install cephadm
|
|
||||||
package:
|
|
||||||
name: cephadm
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
|
|
||||||
- name: Ensure /etc/ceph exists
|
- name: Ensure /etc/ceph exists
|
||||||
file:
|
file:
|
||||||
path: /etc/ceph
|
path: /etc/ceph
|
||||||
@ -42,13 +36,15 @@
|
|||||||
mon_ip: "{{ hostvars[inventory_hostname]['ansible_'+api_interface_name].ipv4.address }}"
|
mon_ip: "{{ hostvars[inventory_hostname]['ansible_'+api_interface_name].ipv4.address }}"
|
||||||
command:
|
command:
|
||||||
cmd: >
|
cmd: >
|
||||||
cephadm bootstrap
|
cephadm
|
||||||
|
--docker
|
||||||
|
bootstrap
|
||||||
--ssh-private-key=/etc/ceph/cephadm.id
|
--ssh-private-key=/etc/ceph/cephadm.id
|
||||||
--ssh-public-key=/etc/ceph/cephadm.pub
|
--ssh-public-key=/etc/ceph/cephadm.pub
|
||||||
--skip-monitoring-stack
|
--skip-monitoring-stack
|
||||||
--skip-dashboard
|
--skip-dashboard
|
||||||
--skip-firewalld
|
--skip-firewalld
|
||||||
--mon-addrv='[v2:{{ mon_ip }}:3300,v1:{{ mon_ip }}:6789]'
|
--mon-ip {{ mon_ip }}
|
||||||
become: True
|
become: True
|
||||||
register: cephadm_bootstrap_output
|
register: cephadm_bootstrap_output
|
||||||
|
|
||||||
@ -74,7 +70,7 @@
|
|||||||
command:
|
command:
|
||||||
cmd: >
|
cmd: >
|
||||||
cephadm shell --
|
cephadm shell --
|
||||||
bash /var/run/ceph/commands.sh
|
bash -x /var/run/ceph/commands.sh
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
# TODO(mnasiadka): Fix merge_configs to support tabs
|
# TODO(mnasiadka): Fix merge_configs to support tabs
|
||||||
|
@ -12,3 +12,9 @@
|
|||||||
filename: ceph
|
filename: ceph
|
||||||
become: True
|
become: True
|
||||||
when: not cephadm_use_package_from_distribution | bool
|
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 }}"
|
loop: "{{ cephadm_ceph_rpm_repos }}"
|
||||||
become: True
|
become: True
|
||||||
when: not cephadm_use_package_from_distribution
|
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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% if scenario == "cephadm" %}
|
{% if scenario == "cephadm" %}
|
||||||
|
{% if ansible_facts.distribution == "Rocky" %}
|
||||||
|
docker_custom_config:
|
||||||
|
default-ulimits:
|
||||||
|
nofile:
|
||||||
|
Name: nofile
|
||||||
|
Hard: 1048576
|
||||||
|
Soft: 1048576
|
||||||
|
{% endif %}
|
||||||
# kolla-ansible vars
|
# kolla-ansible vars
|
||||||
enable_cinder: "yes"
|
enable_cinder: "yes"
|
||||||
# External Ceph
|
# External Ceph
|
||||||
|
Loading…
x
Reference in New Issue
Block a user