Пример #1
0
def configure():
    if utils.isOvirtNode():
        if not os.path.exists(constants.P_VDSM_CERT):
            raise InvalidRun("vdsm: Missing certificate, vdsm not registered")
        validate_ovirt_certs()

    # Remove a previous configuration (if present)
    removeConf()

    vdsmConfiguration = {
        'ssl_enabled': config.getboolean('vars', 'ssl'),
        'sanlock_enabled': constants.SANLOCK_ENABLED,
        'libvirt_selinux': constants.LIBVIRT_SELINUX
    }

    # write configuration
    for cfile, content in FILES.items():
        content['configure'](content, vdsmConfiguration)
Пример #2
0
def configure():
    _exec_vdsm_gencerts()
    if isOvirtNode():
        validate_ovirt_certs()
Пример #3
0
def configure():
    _exec_vdsm_gencerts()
    if isOvirtNode():
        validate_ovirt_certs()