]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/cephadm: Add mariner as a supported distro. 43401/head
authorRoaa Sakr <romoh@microsoft.com>
Fri, 1 Oct 2021 22:40:11 +0000 (15:40 -0700)
committerRoaa Sakr <romoh@microsoft.com>
Mon, 4 Oct 2021 18:36:51 +0000 (11:36 -0700)
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>
src/cephadm/cephadm

index 17b7fcfc333a59fba1c17945e324e5671e479bdf..a74e27eb4f2d46b8c536c6d3eb092a5ab6f01650 100755 (executable)
@@ -6341,6 +6341,7 @@ class YumDnf(Packager):
         'rocky': ('centos', 'el'),
         'almalinux': ('centos', 'el'),
         'fedora': ('fedora', 'fc'),
+        'mariner': ('mariner', 'cm'),
     }
 
     def __init__(self, ctx: CephadmContext,
@@ -6357,6 +6358,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'