Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions roles/cifmw_cephadm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ that they do not need to be changed for a typical EDPM deployment.
`cifmw_cephadm_container_image` (e.g. "ceph") and
`cifmw_cephadm_container_tag` (e.g. "v18").

* `cifmw_cephadm_rpm_url`: (String) URL to a specific cephadm RPM package.
When set, cephadm is installed directly from this URL instead of from
the configured repository. This is useful for testing pre-release builds
or specific versions. Defaults to `""` (empty string, uses repository
installation).

* `cifmw_cephadm_spec_ansible_host`: the path to the Ceph spec
generated by the `cifmw_ceph_spec` role (e.g. `/tmp/ceph_spec.yml`).

Expand Down
1 change: 1 addition & 0 deletions roles/cifmw_cephadm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ cifmw_cephadm_version: "squid"
cifmw_cephadm_prepare_host: false
cifmw_cephadm_wait_install_retries: 8
cifmw_cephadm_wait_install_delay: 15
cifmw_cephadm_rpm_url: ""
cifmw_cephadm_rgw_ingress_service_name: "ingress.rgw.default"
cifmw_cephadm_rgw_ingress_service_id: "rgw.default"
cifmw_cephadm_rgw_port: 8080
Expand Down
16 changes: 15 additions & 1 deletion roles/cifmw_cephadm/tasks/install_cephadm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
name: centos-release-ceph-{{ cifmw_cephadm_version }}
state: present

- name: Install cephadm package
- name: Install cephadm package from repository
become: true
when:
- cifmw_cephadm_rpm_url | length == 0
- cifmw_cephadm_predeployed | bool or
cifmw_cephadm_repository_override | bool
ansible.builtin.dnf:
Expand All @@ -35,6 +36,19 @@
delay: "{{ cifmw_cephadm_wait_install_delay }}"
until: task_result is success

- name: Install cephadm package from URL
become: true
when:
- cifmw_cephadm_rpm_url | length > 0
ansible.builtin.dnf:
name: "{{ cifmw_cephadm_rpm_url }}"
state: present
disable_gpg_check: true
register: task_result
retries: "{{ cifmw_cephadm_wait_install_retries }}"
delay: "{{ cifmw_cephadm_wait_install_delay }}"
until: task_result is success

- name: Stat cephadm file
ansible.builtin.stat:
path: "{{ cifmw_cephadm_bin }}"
Expand Down
Loading