public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stefan Sterz <s.sterz@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-offline-mirror 1/2] add support for ceph reef
Date: Tue, 21 Nov 2023 15:48:17 +0100	[thread overview]
Message-ID: <20231121144818.664549-1-s.sterz@proxmox.com> (raw)

since it's the new default ceph release, add support for setting up
the ceph reef repos in the `setup` command.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
 src/bin/proxmox-offline-mirror.rs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/proxmox-offline-mirror.rs b/src/bin/proxmox-offline-mirror.rs
index 9d37ea6..2f2e782 100644
--- a/src/bin/proxmox-offline-mirror.rs
+++ b/src/bin/proxmox-offline-mirror.rs
@@ -255,10 +255,14 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<Vec<MirrorConfig>, Er
                     Octopus,
                     Pacific,
                     Quincy,
+                    Reef,
                 }
 
                 let releases = match release {
-                    &Release::Bookworm => vec![(CephRelease::Quincy, "Quincy (17.x)")],
+                    Release::Bookworm => vec![
+                        (CephRelease::Quincy, "Quincy (17.x)"),
+                        (CephRelease::Reef, "Reef (18.x)"),
+                    ],
                     Release::Bullseye => {
                         vec![
                             (CephRelease::Octopus, "Octopus (15.x)"),
@@ -324,6 +328,7 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<Vec<MirrorConfig>, Er
                     CephRelease::Octopus => "octopus",
                     CephRelease::Pacific => "pacific",
                     CephRelease::Quincy => "quincy",
+                    CephRelease::Reef => "reef",
                 };
 
                 let url = format!("{base_url}-{ceph_release} {release} {components}");
-- 
2.39.2





             reply	other threads:[~2023-11-21 14:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-21 14:48 Stefan Sterz [this message]
2023-11-21 14:48 ` [pbs-devel] [PATCH proxmox-offline-mirror 2/2] add missing subscription setting for ceph enterprise repos Stefan Sterz
2023-11-21 15:49   ` Maximiliano Sandoval
2023-11-25 16:19 ` [pbs-devel] applied: [PATCH proxmox-offline-mirror 1/2] add support for ceph reef Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231121144818.664549-1-s.sterz@proxmox.com \
    --to=s.sterz@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal