Skip to content
Snippets Groups Projects
Commit 47a73ac4 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

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

parents 459b8927 a6e28f95
No related branches found
No related tags found
No related merge requests found
--- ---
- 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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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" ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment