
from __future__ import absolute_import
from __future__ import division

import os

GLUSTER_MGMT_ENABLED = bool(1)

SMBIOS_MANUFACTURER = 'oVirt'
SMBIOS_OSNAME = 'oVirt Node'

VDSM_USER = 'vdsm'
VDSM_GROUP = 'kvm'
DISKIMAGE_USER = 'vdsm'
DISKIMAGE_GROUP = 'qemu'
METADATA_USER = 'vdsm'
METADATA_GROUP = 'kvm'
QEMU_PROCESS_USER = 'qemu'
QEMU_PROCESS_GROUP = 'qemu'
OVIRT_VMCONSOLE_USER = 'ovirt-vmconsole'
OVIRT_VMCONSOLE_GROUP = 'ovirt-vmconsole'


SANLOCK_ENABLED = 'yes' == 'yes'
SANLOCK_USER = 'sanlock'

LIBVIRT_SELINUX = 'yes' == 'yes'

GIB = 1024 * MEGAB

P_LIBVIRT_VMCHANNELS = '/var/lib/libvirt/qemu/channels/'
P_OVIRT_VMCONSOLES = '/var/run/ovirt-vmconsole-console/'



SYSCONF_PATH = '/etc'

EXT_CHOWN = '/usr/bin/chown'

EXT_DD = '/usr/bin/dd'
EXT_DMIDECODE = '/usr/sbin/dmidecode'
EXT_DMSETUP = '/usr/sbin/dmsetup'

EXT_FENCE_PREFIX = os.path.dirname('/usr/sbin/fence_ilo') + '/fence_'
EXT_FSCK = '/usr/sbin/fsck'
EXT_FUSER = '/sbin/fuser'

EXT_GREP = '/usr/bin/grep'

EXT_IONICE = '/usr/bin/ionice'
EXT_ISCSIADM = '/sbin/iscsiadm'

EXT_KILL = '/usr/bin/kill'

EXT_LVM = '/sbin/lvm'

EXT_MKFS = '/usr/sbin/mkfs'
EXT_MKFS_MSDOS = '/sbin/mkfs.msdos'
EXT_MKISOFS = '/usr/bin/mkisofs'
EXT_MOUNT = '/usr/bin/mount'
EXT_MULTIPATH = '/sbin/multipath'

EXT_NICE = '/usr/bin/nice'

EXT_PRLIMIT = '/usr/bin/prlimit'

EXT_SETSID = '/usr/bin/setsid'
EXT_SU = '/usr/bin/su'
EXT_SUDO = '/usr/bin/sudo'

EXT_TAR = '/usr/bin/tar'
EXT_TASKSET = '/usr/bin/taskset'
EXT_TUNE2FS = '/usr/sbin/tune2fs'

EXT_UMOUNT = '/usr/bin/umount'

EXT_SAFELEASE = '/usr/libexec/safelease/safelease'

