Skip to content

Commit

Permalink
preflight: support setting up custom repo for ubuntu
Browse files Browse the repository at this point in the history
There are custom storage settings for centos and redhat, but there are
no settings for ubuntu, so I added them.

Signed-off-by: ycy1766 <[email protected]>
(cherry picked from commit 564b294)
  • Loading branch information
ycy1766 authored and mergify[bot] committed Sep 17, 2022
1 parent 826f24b commit b8f8086
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@
filename: ceph
update_cache: no

- name: configure Ceph custom repositories
when: ceph_origin == 'custom'
apt_repository:
repo: "deb {{ item.baseurl }}/ {{ ansible_facts['distribution_release'] }} {{ item.components }}"
state: "{{ item.state | default(omit) }}"
filename: ceph_custom
update_cache: no
loop: "{{ ceph_custom_repositories }}"

- name: install prerequisites packages
apt:
name: "{{ ['python3','cephadm','ceph-common'] }}"
Expand Down
6 changes: 6 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ priority
**description**
The priority of this repository.

components
##########
**description**
This is a Debian OS-based family parameter only.
The components of this ubuntu/debian repository.


Example::

Expand Down

0 comments on commit b8f8086

Please sign in to comment.