]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/cephadm: Add mariner as a supported distro.
authorRoaa Sakr <romoh@microsoft.com>
Fri, 1 Oct 2021 22:40:11 +0000 (15:40 -0700)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:20 +0000 (10:01 +0100)
Using cephadm install commands on Mariner will result in an error
"Distro not supported" though the packages are supported and can be
installed manually. This patch adds mariner as a supported distro.
Fix validated on mariner.

Signed-off-by: Roaa Sakr <romoh@microsoft.com>
(cherry picked from commit 1612427ea549d3fc259c8eb0e37953a9323dcb31)

src/cephadm/cephadm

index b257befdaf2d2ccddf5ef319173eb5e328b10b41..7e367993ec70e25fd6fc237f392e8c9341ed721f 100755 (executable)
@@ -6109,6 +6109,7 @@ class YumDnf(Packager):
         'rocky': ('centos', 'el'),
         'almalinux': ('centos', 'el'),
         'fedora': ('fedora', 'fc'),
+        'mariner': ('mariner', 'cm'),
     }
 
     def __init__(self, ctx: CephadmContext,
@@ -6125,6 +6126,8 @@ class YumDnf(Packager):
         if (self.distro_code == 'fc' and self.major >= 30) or \
            (self.distro_code == 'el' and self.major >= 8):
             self.tool = 'dnf'
+        elif (self.distro_code == 'cm'):
+            self.tool = 'tdnf'
         else:
             self.tool = 'yum'