]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
pveceph: allow installing octopus as experimental option
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 May 2020 13:22:47 +0000 (15:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 May 2020 13:25:12 +0000 (15:25 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pveceph.pm

index eac3743a4e3fd8eae576528e8de81d1e5c2678d9..69e83371ac65cd3ae65be4b3bc9432e4ae4cd43f 100755 (executable)
@@ -117,11 +117,17 @@ __PACKAGE__->register_method ({
            version => {
                type => 'string',
                # for buster, luminous kept for testing/upgrade purposes only! - FIXME: remove with 6.2?
-               enum => ['luminous', 'nautilus',],
+               enum => ['luminous', 'nautilus', 'octopus'],
                default => 'nautilus',
                description => "Ceph version to install.",
                optional => 1,
-           }
+           },
+           'allow-experimental' => {
+               type => 'boolean',
+               default => 0,
+               optional => 1,
+               description => "Allow experimental versions. Use with care!",
+           },
        },
     },
     returns => { type => 'null' },
@@ -133,9 +139,14 @@ __PACKAGE__->register_method ({
 
        my $repolist;
        if ($cephver eq 'nautilus') {
-               $repolist = "deb http://download.proxmox.com/debian/ceph-nautilus buster main\n";
+           $repolist = "deb http://download.proxmox.com/debian/ceph-nautilus buster main\n";
        } elsif ($cephver eq 'luminous') {
-               $repolist = "deb http://download.proxmox.com/debian/ceph-luminous buster main\n";
+           $repolist = "deb http://download.proxmox.com/debian/ceph-luminous buster main\n";
+       } elsif ($cephver eq 'octopus') {
+           die "Not allowed to select version '$cephver'\n" if !$param->{'allow-experimental'};
+           $repolist = "deb http://repo.proxmox.com/staging/ceph-octopus buster ceph-15\n";
+           # FIXME: use public mirror once available
+           #$repolist = "deb http://download.proxmox.com/debian/ceph-octopus buster main\n";
        } else {
            die "not implemented ceph version: $cephver";
        }