]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-detect-init: Add Virtuozzo Linux support
authorAndrey Parfenov <aparfenov@virtuozzo.com>
Mon, 3 Apr 2017 13:37:21 +0000 (16:37 +0300)
committerAndrey Parfenov <aparfenov@virtuozzo.com>
Mon, 3 Apr 2017 13:37:21 +0000 (16:37 +0300)
Signed-off-by: Andrey Parfenov <aparfenov@virtuozzo.com>
src/ceph-detect-init/ceph_detect_init/__init__.py

index 9abc421c97b6519013272640e316c0d0b84a6c32..78374bef9fd6fce9ca3ca45e29fab1cd3c9a5721 100644 (file)
@@ -76,6 +76,7 @@ def _get_distro(distro, use_rhceph=False):
         'exherbo': gentoo,
         'freebsd': freebsd,
         'docker': docker,
+        'virtuozzo': centos,
     }
 
     if distro == 'redhat' and use_rhceph:
@@ -100,6 +101,8 @@ def _normalized_distro_name(distro):
         return 'oraclevms'
     elif distro.startswith(('gentoo', 'funtoo', 'exherbo')):
         return 'gentoo'
+    elif distro.startswith('virtuozzo'):
+        return 'virtuozzo'
     return distro
 
 
@@ -160,6 +163,9 @@ def platform_information():
         codename = 'OL' + release
     elif distro_lower.startswith('oracle vm'):
         codename = 'OVS' + release
+    # this could be an empty string in Virtuozzo linux
+    elif distro_lower.startswith('virtuozzo linux'):
+        codename = 'virtuozzo'
 
     return (
         str(distro).rstrip(),