]> git.proxmox.com Git - proxmox-apt.git/commitdiff
add ceph quincy repositories
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 2 Aug 2022 12:59:27 +0000 (14:59 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 6 Sep 2022 07:37:46 +0000 (09:37 +0200)
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
src/repositories/mod.rs
src/repositories/standard.rs
tests/repositories.rs

index 88b515d711f3071595e113915a76b1225bb09ee0..d8848b8466627ddcbaa6cf083d3cbb955384981c 100644 (file)
@@ -90,6 +90,8 @@ pub fn standard_repositories(
 
     if product == "pve" {
         result.append(&mut vec![
+            APTStandardRepository::from(APTRepositoryHandle::CephQuincy),
+            APTStandardRepository::from(APTRepositoryHandle::CephQuincyTest),
             APTStandardRepository::from(APTRepositoryHandle::CephPacific),
             APTStandardRepository::from(APTRepositoryHandle::CephPacificTest),
             APTStandardRepository::from(APTRepositoryHandle::CephOctopus),
index 6b2cafd6239a180def3284fc1f6d080d09dd185c..17cfa8d2b6567a28811c83a13a7d06e9b86d1f92 100644 (file)
@@ -46,6 +46,10 @@ pub enum APTRepositoryHandle {
     NoSubscription,
     /// The test repository.
     Test,
+    /// Ceph Quincy repository.
+    CephQuincy,
+    /// Ceph Quincy test repository.
+    CephQuincyTest,
     /// Ceph Pacific repository.
     CephPacific,
     /// Ceph Pacific test repository.
@@ -75,6 +79,8 @@ impl TryFrom<&str> for APTRepositoryHandle {
             "enterprise" => Ok(APTRepositoryHandle::Enterprise),
             "no-subscription" => Ok(APTRepositoryHandle::NoSubscription),
             "test" => Ok(APTRepositoryHandle::Test),
+            "ceph-quincy" => Ok(APTRepositoryHandle::CephQuincy),
+            "ceph-quincy-test" => Ok(APTRepositoryHandle::CephQuincyTest),
             "ceph-pacific" => Ok(APTRepositoryHandle::CephPacific),
             "ceph-pacific-test" => Ok(APTRepositoryHandle::CephPacificTest),
             "ceph-octopus" => Ok(APTRepositoryHandle::CephOctopus),
@@ -90,6 +96,8 @@ impl Display for APTRepositoryHandle {
             APTRepositoryHandle::Enterprise => write!(f, "enterprise"),
             APTRepositoryHandle::NoSubscription => write!(f, "no-subscription"),
             APTRepositoryHandle::Test => write!(f, "test"),
+            APTRepositoryHandle::CephQuincy => write!(f, "ceph-quincy"),
+            APTRepositoryHandle::CephQuincyTest => write!(f, "ceph-quincy-test"),
             APTRepositoryHandle::CephPacific => write!(f, "ceph-pacific"),
             APTRepositoryHandle::CephPacificTest => write!(f, "ceph-pacific-test"),
             APTRepositoryHandle::CephOctopus => write!(f, "ceph-octopus"),
@@ -115,6 +123,13 @@ impl APTRepositoryHandle {
                 "This repository contains the latest packages and is primarily used for test labs \
                 and by developers to test new features."
             }
+            APTRepositoryHandle::CephQuincy => {
+                "This repository holds the main Proxmox Ceph Quincy packages."
+            }
+            APTRepositoryHandle::CephQuincyTest => {
+                "This repository contains the Ceph Quincy packages before they are moved to the \
+                main repository."
+            }
             APTRepositoryHandle::CephPacific => {
                 "This repository holds the main Proxmox Ceph Pacific packages."
             }
@@ -139,6 +154,8 @@ impl APTRepositoryHandle {
             APTRepositoryHandle::Enterprise => "Enterprise",
             APTRepositoryHandle::NoSubscription => "No-Subscription",
             APTRepositoryHandle::Test => "Test",
+            APTRepositoryHandle::CephQuincy => "Ceph Quincy",
+            APTRepositoryHandle::CephQuincyTest => "Ceph Quincy Test",
             APTRepositoryHandle::CephPacific => "Ceph Pacific",
             APTRepositoryHandle::CephPacificTest => "Ceph Pacific Test",
             APTRepositoryHandle::CephOctopus => "Ceph Octopus",
@@ -155,6 +172,8 @@ impl APTRepositoryHandle {
             }
             APTRepositoryHandle::NoSubscription => "/etc/apt/sources.list".to_string(),
             APTRepositoryHandle::Test => "/etc/apt/sources.list".to_string(),
+            APTRepositoryHandle::CephQuincy => "/etc/apt/sources.list.d/ceph.list".to_string(),
+            APTRepositoryHandle::CephQuincyTest => "/etc/apt/sources.list.d/ceph.list".to_string(),
             APTRepositoryHandle::CephPacific => "/etc/apt/sources.list.d/ceph.list".to_string(),
             APTRepositoryHandle::CephPacificTest => "/etc/apt/sources.list.d/ceph.list".to_string(),
             APTRepositoryHandle::CephOctopus => "/etc/apt/sources.list.d/ceph.list".to_string(),
@@ -200,6 +219,16 @@ impl APTRepositoryHandle {
                 },
                 format!("{}test", product),
             ),
+            APTRepositoryHandle::CephQuincy => (
+                APTRepositoryPackageType::Deb,
+                vec!["http://download.proxmox.com/debian/ceph-quincy".to_string()],
+                "main".to_string(),
+            ),
+            APTRepositoryHandle::CephQuincyTest => (
+                APTRepositoryPackageType::Deb,
+                vec!["http://download.proxmox.com/debian/ceph-quincy".to_string()],
+                "test".to_string(),
+            ),
             APTRepositoryHandle::CephPacific => (
                 APTRepositoryPackageType::Deb,
                 vec!["http://download.proxmox.com/debian/ceph-pacific".to_string()],
index 70e0201d8ea03eb74ea1c3ec4da98335ef88865c..fd94e0d63640540f79d3b27bbe3738b3cdcc5786 100644 (file)
@@ -362,6 +362,8 @@ fn test_standard_repositories() -> Result<(), Error> {
         APTStandardRepository::from(APTRepositoryHandle::Enterprise),
         APTStandardRepository::from(APTRepositoryHandle::NoSubscription),
         APTStandardRepository::from(APTRepositoryHandle::Test),
+        APTStandardRepository::from(APTRepositoryHandle::CephQuincy),
+        APTStandardRepository::from(APTRepositoryHandle::CephQuincyTest),
         APTStandardRepository::from(APTRepositoryHandle::CephPacific),
         APTStandardRepository::from(APTRepositoryHandle::CephPacificTest),
         APTStandardRepository::from(APTRepositoryHandle::CephOctopus),