1 {-| Build-time configuration for Ganeti.
3 Note that this file is autogenerated by the Makefile with a header
10 Copyright (C) 2013 Google Inc.
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 This program is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
31 split :: String -> [String]
33 case span (/= ',') str of
35 (x, _:xs) -> x:split xs
37 packageVersion :: String
38 packageVersion = "PACKAGE_VERSION"
41 versionMajor = VERSION_MAJOR
44 versionMinor = VERSION_MINOR
46 versionRevision :: Int
47 versionRevision = VERSION_REVISION
49 versionSuffix :: String
50 versionSuffix = "VERSION_SUFFIX"
53 versionFull = "VERSION_FULL"
56 dirVersion = "DIRVERSION"
58 localstatedir :: String
59 localstatedir = "LOCALSTATEDIR"
62 sysconfdir = "SYSCONFDIR"
64 sshConfigDir :: String
65 sshConfigDir = "SSH_CONFIG_DIR"
67 sshLoginUser :: String
68 sshLoginUser = "SSH_LOGIN_USER"
70 sshConsoleUser :: String
71 sshConsoleUser = "SSH_CONSOLE_USER"
74 exportDir = "EXPORT_DIR"
76 osSearchPath :: [String]
77 osSearchPath = split OS_SEARCH_PATH
79 esSearchPath :: [String]
80 esSearchPath = split ES_SEARCH_PATH
82 xenBootloader :: String
83 xenBootloader = "XEN_BOOTLOADER"
85 xenConfigDir :: String
86 xenConfigDir = "XEN_CONFIG_DIR"
89 xenKernel = "XEN_KERNEL"
92 xenInitrd = "XEN_INITRD"
95 kvmKernel = "KVM_KERNEL"
97 sharedFileStorageDir :: String
98 sharedFileStorageDir = "SHARED_FILE_STORAGE_DIR"
100 iallocatorSearchPath :: [String]
101 iallocatorSearchPath = split IALLOCATOR_SEARCH_PATH
110 socatPath = "SOCAT_PATH"
112 socatUseEscape :: Bool
113 socatUseEscape = SOCAT_USE_ESCAPE
115 socatUseCompress :: Bool
116 socatUseCompress = SOCAT_USE_COMPRESS
118 lvmStripecount :: Int
119 lvmStripecount = LVM_STRIPECOUNT
122 toolsdir = "TOOLSDIR"
124 gntScripts :: [String]
125 gntScripts = GNT_SCRIPTS[]
127 htoolsProgs :: [String]
128 htoolsProgs = HS_HTOOLS_PROGS[]
131 pkglibdir = "PKGLIBDIR"
134 sharedir = "SHAREDIR"
136 versionedsharedir :: String
137 versionedsharedir = "VERSIONEDSHAREDIR"
139 drbdBarriers :: String
140 drbdBarriers = "DRBD_BARRIERS"
142 drbdNoMetaFlush :: Bool
143 drbdNoMetaFlush = DRBD_NO_META_FLUSH
145 syslogUsage :: String
146 syslogUsage = "SYSLOG_USAGE"
148 daemonsGroup :: String
149 daemonsGroup = "DAEMONS_GROUP"
152 adminGroup = "ADMIN_GROUP"
154 masterdUser :: String
155 masterdUser = "MASTERD_USER"
157 masterdGroup :: String
158 masterdGroup = "MASTERD_GROUP"
161 rapiUser = "RAPI_USER"
164 rapiGroup = "RAPI_GROUP"
167 confdUser = "CONFD_USER"
170 confdGroup = "CONFD_GROUP"
173 luxidUser = "LUXID_USER"
176 luxidGroup = "LUXID_GROUP"
179 nodedUser = "NODED_USER"
182 nodedGroup = "NODED_GROUP"
185 mondUser = "MOND_USER"
188 mondGroup = "MOND_GROUP"
190 diskSeparator :: String
191 diskSeparator = "DISK_SEPARATOR"
193 qemuimgPath :: String
194 qemuimgPath = "QEMUIMG_PATH"
200 enableConfd = ENABLE_CONFD
205 enableSplitQuery :: Bool
206 enableSplitQuery = ENABLE_SPLIT_QUERY
208 enableRestrictedCommands :: Bool
209 enableRestrictedCommands = ENABLE_RESTRICTED_COMMANDS
212 enableMond = ENABLE_MOND
215 hasGnuLn = HAS_GNU_LN
217 -- Write dictionary with man page name as the key and the section
218 -- number as the value
219 manPages :: [(String, Int)]
220 manPages = MAN_PAGES[]