Advertisement
kmajumder

Untitled

Oct 15th, 2019
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. #
  2. # Copyright 2009-2017 Red Hat, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. #
  18. # Refer to the README and COPYING files for full details of the license
  19. #
  20.  
  21. from __future__ import absolute_import
  22. from __future__ import division
  23.  
  24. import os
  25.  
  26. GLUSTER_MGMT_ENABLED = bool(@GLUSTER_MGMT@)
  27.  
  28. #
  29. # file ownership definitions
  30. #
  31. VDSM_USER = '@VDSMUSER@'
  32. VDSM_GROUP = '@VDSMGROUP@'
  33. DISKIMAGE_USER = '@VDSMUSER@'
  34. DISKIMAGE_GROUP = '@QEMUGROUP@'
  35. METADATA_USER = '@METADATAUSER@'
  36. METADATA_GROUP = '@METADATAGROUP@'
  37. QEMU_PROCESS_USER = '@QEMUUSER@'
  38. QEMU_PROCESS_GROUP = '@QEMUGROUP@'
  39. OVIRT_VMCONSOLE_USER = '@OVIRTVMCONSOLEUSER@'
  40. OVIRT_VMCONSOLE_GROUP = '@OVIRTVMCONSOLEGROUP@'
  41.  
  42.  
  43. # Sanlock definitions
  44. SANLOCK_ENABLED = '@ENABLE_LIBVIRT_SANLOCK@' == 'yes'
  45. SANLOCK_USER = '@SNLKUSER@'
  46.  
  47. # Libvirt selinux
  48. LIBVIRT_SELINUX = '@ENABLE_LIBVIRT_SELINUX@' == 'yes'
  49.  
  50. MEGAB = 2 ** 20 # = 1024 ** 2 = 1 MiB
  51. GIB = 1024 * MEGAB
  52.  
  53. #
  54. # Path definitions
  55. #
  56. P_LIBVIRT_VMCHANNELS = '/var/lib/libvirt/qemu/channels/'
  57. P_OVIRT_VMCONSOLES = '/var/run/ovirt-vmconsole-console/'
  58. P_VDSM = '@VDSMDIR@/' # NOQA: E501 (potentially long line)
  59. P_VDSM_HOOKS = '@HOOKSDIR@/' # NOQA: E501 (potentially long line)
  60. P_VDSM_LIB = '@VDSMLIBDIR@/' # NOQA: E501 (potentially long line)
  61. P_VDSM_RUN = '@VDSMRUNDIR@/' # NOQA: E501 (potentially long line)
  62. P_VDSM_CONF = '@CONFDIR@/' # NOQA: E501 (potentially long line)
  63.  
  64. P_VDSM_LOG = '@VDSMLOGDIR@' # NOQA: E501 (potentially long line)
  65.  
  66. P_VDSM_EXEC = '@LIBEXECDIR@' # NOQA: E501 (potentially long line)
  67.  
  68. #
  69. # Configuration file definitions
  70. #
  71. SYSCONF_PATH = '@sysconfdir@'
  72.  
  73. #
  74. # External programs (sorted, please keep in order).
  75. #
  76. EXT_CHOWN = '@CHOWN_PATH@'
  77.  
  78. EXT_DD = '@DD_PATH@'
  79. EXT_DMSETUP = '@DMSETUP_PATH@'
  80.  
  81. EXT_FENCE_PREFIX = os.path.dirname('@FENCE_AGENT_PATH@') + '/fence_'
  82. EXT_FSCK = '@FSCK_PATH@'
  83. EXT_FUSER = '@FUSER_PATH@'
  84.  
  85. EXT_GREP = '@GREP_PATH@'
  86.  
  87. EXT_IONICE = '@IONICE_PATH@'
  88. EXT_ISCSIADM = '@ISCSIADM_PATH@'
  89.  
  90. EXT_KILL = '@KILL_PATH@'
  91.  
  92. EXT_LVM = '@LVM_PATH@'
  93.  
  94. EXT_MKFS = '@MKFS_PATH@'
  95. EXT_MKFS_MSDOS = '@MKFS_MSDOS_PATH@'
  96. EXT_MKISOFS = '@MKISOFS_PATH@'
  97. EXT_MOUNT = '@MOUNT_PATH@'
  98. EXT_MULTIPATH = '@MULTIPATH_PATH@'
  99.  
  100. EXT_NICE = '@NICE_PATH@'
  101.  
  102. EXT_PRLIMIT = '@PRLIMIT_PATH@'
  103.  
  104. EXT_SETSID = '@SETSID_PATH@'
  105. EXT_SH = '/bin/sh' # The shell path is invariable
  106. EXT_SU = '@SU_PATH@'
  107. EXT_SUDO = '@SUDO_PATH@'
  108.  
  109. EXT_TAR = '@TAR_PATH@'
  110. EXT_TASKSET = '@TASKSET_PATH@'
  111. EXT_TUNE2FS = '@TUNE2FS_PATH@'
  112.  
  113. EXT_UMOUNT = '@UMOUNT_PATH@'
  114.  
  115. EXT_SAFELEASE = '@SAFELEASE_PATH@'
  116.  
  117. EXT_CURL_IMG_WRAP = '@LIBEXECDIR@/curl-img-wrap' # NOQA: E501 (potentially long line)
  118. EXT_FC_SCAN = '@LIBEXECDIR@/fc-scan' # NOQA: E501 (potentially long line)
  119. EXT_KVM_2_OVIRT = '@LIBEXECDIR@/kvm2ovirt' # NOQA: E501 (potentially long line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement