module.normalized_name = _normalized_distro_name(distro_name)
module.normalized_release = _normalized_release(release)
module.distro = module.normalized_name
- module.is_el = module.normalized_name in ['redhat', 'centos', 'fedora', 'scientific', 'oracle']
+ module.is_el = module.normalized_name in ['redhat', 'centos', 'fedora', 'scientific', 'oracle', 'virtuozzo']
module.is_rpm = module.normalized_name in ['redhat', 'centos',
- 'fedora', 'scientific', 'suse', 'oracle']
+ 'fedora', 'scientific', 'suse', 'oracle', 'virtuozzo']
module.is_deb = not module.is_rpm
module.release = release
module.codename = codename
'redhat': centos,
'fedora': fedora,
'suse': suse,
+ 'virtuozzo' : centos
}
if distro == 'redhat' and use_rhceph:
return 'centos'
elif distro.startswith('linuxmint'):
return 'ubuntu'
+ elif distro.startswith('virtuozzo'):
+ return 'virtuozzo'
return distro
def rpm_dist(distro):
- if distro.normalized_name in ['redhat', 'centos', 'scientific', 'oracle'] and distro.normalized_release.int_major >= 6:
+ if distro.normalized_name in ['redhat', 'centos', 'scientific', 'oracle', 'virtuozzo'] and distro.normalized_release.int_major >= 6:
return 'el' + distro.normalized_release.major
return 'el6'
if distro.normalized_release.int_major >= 6:
if distro.normalized_name == 'redhat':
return 'rhel' + distro.normalized_release.major
- if distro.normalized_name in ['centos', 'scientific', 'oracle']:
+ if distro.normalized_name in ['centos', 'scientific', 'oracle', 'virtuozzo']:
return 'el' + distro.normalized_release.major
return 'el6'