Statistics
| Branch: | Tag: | Revision:

root / src / AutoConf.hs.in @ 557f5dad

History | View | Annotate | Download (4.2 kB)

1 fa70fff2 Jose A. Lopes
{-| Build-time configuration for Ganeti.
2 fa70fff2 Jose A. Lopes
3 fa70fff2 Jose A. Lopes
Note that this file is autogenerated by the Makefile with a header
4 fa70fff2 Jose A. Lopes
from @AutoConf.hs.in@.
5 fa70fff2 Jose A. Lopes
6 fa70fff2 Jose A. Lopes
-}
7 fa70fff2 Jose A. Lopes
8 fa70fff2 Jose A. Lopes
{-
9 fa70fff2 Jose A. Lopes
10 fa70fff2 Jose A. Lopes
Copyright (C) 2013 Google Inc.
11 fa70fff2 Jose A. Lopes
12 fa70fff2 Jose A. Lopes
This program is free software; you can redistribute it and/or modify
13 fa70fff2 Jose A. Lopes
it under the terms of the GNU General Public License as published by
14 fa70fff2 Jose A. Lopes
the Free Software Foundation; either version 2 of the License, or
15 fa70fff2 Jose A. Lopes
(at your option) any later version.
16 fa70fff2 Jose A. Lopes
17 fa70fff2 Jose A. Lopes
This program is distributed in the hope that it will be useful, but
18 fa70fff2 Jose A. Lopes
WITHOUT ANY WARRANTY; without even the implied warranty of
19 fa70fff2 Jose A. Lopes
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 fa70fff2 Jose A. Lopes
General Public License for more details.
21 fa70fff2 Jose A. Lopes
22 fa70fff2 Jose A. Lopes
You should have received a copy of the GNU General Public License
23 fa70fff2 Jose A. Lopes
along with this program; if not, write to the Free Software
24 fa70fff2 Jose A. Lopes
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 fa70fff2 Jose A. Lopes
02110-1301, USA.
26 fa70fff2 Jose A. Lopes
27 fa70fff2 Jose A. Lopes
-}
28 fa70fff2 Jose A. Lopes
29 fa70fff2 Jose A. Lopes
module AutoConf where
30 fa70fff2 Jose A. Lopes
31 f1b816b7 Jose A. Lopes
split :: String -> [String]
32 f1b816b7 Jose A. Lopes
split str =
33 f1b816b7 Jose A. Lopes
  case span (/= ',') str of
34 f1b816b7 Jose A. Lopes
    (x, []) -> [x]
35 f1b816b7 Jose A. Lopes
    (x, _:xs) -> x:split xs
36 f1b816b7 Jose A. Lopes
37 fa70fff2 Jose A. Lopes
packageVersion :: String
38 fa70fff2 Jose A. Lopes
packageVersion = "PACKAGE_VERSION"
39 fa70fff2 Jose A. Lopes
40 fa70fff2 Jose A. Lopes
versionMajor :: Int
41 fa70fff2 Jose A. Lopes
versionMajor = VERSION_MAJOR
42 fa70fff2 Jose A. Lopes
43 fa70fff2 Jose A. Lopes
versionMinor :: Int
44 fa70fff2 Jose A. Lopes
versionMinor = VERSION_MINOR
45 fa70fff2 Jose A. Lopes
46 fa70fff2 Jose A. Lopes
versionRevision :: Int
47 fa70fff2 Jose A. Lopes
versionRevision = VERSION_REVISION
48 fa70fff2 Jose A. Lopes
49 fa70fff2 Jose A. Lopes
versionSuffix :: String
50 fa70fff2 Jose A. Lopes
versionSuffix = "VERSION_SUFFIX"
51 fa70fff2 Jose A. Lopes
52 fa70fff2 Jose A. Lopes
versionFull :: String
53 fa70fff2 Jose A. Lopes
versionFull = "VERSION_FULL"
54 fa70fff2 Jose A. Lopes
55 9b20010b Klaus Aehlig
dirVersion :: String
56 9b20010b Klaus Aehlig
dirVersion = "DIRVERSION"
57 9b20010b Klaus Aehlig
58 fa70fff2 Jose A. Lopes
localstatedir :: String
59 fa70fff2 Jose A. Lopes
localstatedir = "LOCALSTATEDIR"
60 fa70fff2 Jose A. Lopes
61 fa70fff2 Jose A. Lopes
sysconfdir :: String
62 fa70fff2 Jose A. Lopes
sysconfdir = "SYSCONFDIR"
63 fa70fff2 Jose A. Lopes
64 fa70fff2 Jose A. Lopes
sshConfigDir :: String
65 fa70fff2 Jose A. Lopes
sshConfigDir = "SSH_CONFIG_DIR"
66 fa70fff2 Jose A. Lopes
67 fa70fff2 Jose A. Lopes
sshLoginUser :: String
68 fa70fff2 Jose A. Lopes
sshLoginUser = "SSH_LOGIN_USER"
69 fa70fff2 Jose A. Lopes
70 fa70fff2 Jose A. Lopes
sshConsoleUser :: String
71 fa70fff2 Jose A. Lopes
sshConsoleUser = "SSH_CONSOLE_USER"
72 fa70fff2 Jose A. Lopes
73 fa70fff2 Jose A. Lopes
exportDir :: String
74 fa70fff2 Jose A. Lopes
exportDir = "EXPORT_DIR"
75 fa70fff2 Jose A. Lopes
76 fa70fff2 Jose A. Lopes
osSearchPath :: [String]
77 f1b816b7 Jose A. Lopes
osSearchPath = split OS_SEARCH_PATH
78 fa70fff2 Jose A. Lopes
79 fa70fff2 Jose A. Lopes
esSearchPath :: [String]
80 f1b816b7 Jose A. Lopes
esSearchPath = split ES_SEARCH_PATH
81 fa70fff2 Jose A. Lopes
82 fa70fff2 Jose A. Lopes
xenBootloader :: String
83 fa70fff2 Jose A. Lopes
xenBootloader = "XEN_BOOTLOADER"
84 fa70fff2 Jose A. Lopes
85 fa70fff2 Jose A. Lopes
xenConfigDir :: String
86 fa70fff2 Jose A. Lopes
xenConfigDir = "XEN_CONFIG_DIR"
87 fa70fff2 Jose A. Lopes
88 fa70fff2 Jose A. Lopes
xenKernel :: String
89 fa70fff2 Jose A. Lopes
xenKernel = "XEN_KERNEL"
90 fa70fff2 Jose A. Lopes
91 fa70fff2 Jose A. Lopes
xenInitrd :: String
92 fa70fff2 Jose A. Lopes
xenInitrd = "XEN_INITRD"
93 fa70fff2 Jose A. Lopes
94 fa70fff2 Jose A. Lopes
kvmKernel :: String
95 fa70fff2 Jose A. Lopes
kvmKernel = "KVM_KERNEL"
96 fa70fff2 Jose A. Lopes
97 fa70fff2 Jose A. Lopes
sharedFileStorageDir :: String
98 fa70fff2 Jose A. Lopes
sharedFileStorageDir = "SHARED_FILE_STORAGE_DIR"
99 fa70fff2 Jose A. Lopes
100 fa70fff2 Jose A. Lopes
iallocatorSearchPath :: [String]
101 f1b816b7 Jose A. Lopes
iallocatorSearchPath = split IALLOCATOR_SEARCH_PATH
102 fa70fff2 Jose A. Lopes
103 fa70fff2 Jose A. Lopes
kvmPath :: String
104 fa70fff2 Jose A. Lopes
kvmPath = "KVM_PATH"
105 fa70fff2 Jose A. Lopes
106 fa70fff2 Jose A. Lopes
ipPath :: String
107 fa70fff2 Jose A. Lopes
ipPath = "IP_PATH"
108 fa70fff2 Jose A. Lopes
109 fa70fff2 Jose A. Lopes
socatPath :: String
110 dd7863e7 Jose A. Lopes
socatPath = "SOCAT_PATH"
111 fa70fff2 Jose A. Lopes
112 fa70fff2 Jose A. Lopes
socatUseEscape :: Bool
113 fa70fff2 Jose A. Lopes
socatUseEscape = SOCAT_USE_ESCAPE
114 fa70fff2 Jose A. Lopes
115 fa70fff2 Jose A. Lopes
socatUseCompress :: Bool
116 fa70fff2 Jose A. Lopes
socatUseCompress = SOCAT_USE_COMPRESS
117 fa70fff2 Jose A. Lopes
118 fa70fff2 Jose A. Lopes
lvmStripecount :: Int
119 fa70fff2 Jose A. Lopes
lvmStripecount = LVM_STRIPECOUNT
120 fa70fff2 Jose A. Lopes
121 fa70fff2 Jose A. Lopes
toolsdir :: String
122 fa70fff2 Jose A. Lopes
toolsdir = "TOOLSDIR"
123 fa70fff2 Jose A. Lopes
124 fa70fff2 Jose A. Lopes
gntScripts :: [String]
125 fa70fff2 Jose A. Lopes
gntScripts = GNT_SCRIPTS[]
126 fa70fff2 Jose A. Lopes
127 fa70fff2 Jose A. Lopes
htoolsProgs :: [String]
128 fa70fff2 Jose A. Lopes
htoolsProgs = HS_HTOOLS_PROGS[]
129 fa70fff2 Jose A. Lopes
130 fa70fff2 Jose A. Lopes
pkglibdir :: String
131 fa70fff2 Jose A. Lopes
pkglibdir = "PKGLIBDIR"
132 fa70fff2 Jose A. Lopes
133 9bfcf2e9 Klaus Aehlig
sharedir :: String
134 9bfcf2e9 Klaus Aehlig
sharedir = "SHAREDIR"
135 9bfcf2e9 Klaus Aehlig
136 12475881 Klaus Aehlig
versionedsharedir :: String
137 12475881 Klaus Aehlig
versionedsharedir = "VERSIONEDSHAREDIR"
138 12475881 Klaus Aehlig
139 fa70fff2 Jose A. Lopes
drbdBarriers :: String
140 fa70fff2 Jose A. Lopes
drbdBarriers = "DRBD_BARRIERS"
141 fa70fff2 Jose A. Lopes
142 fa70fff2 Jose A. Lopes
drbdNoMetaFlush :: Bool
143 fa70fff2 Jose A. Lopes
drbdNoMetaFlush = DRBD_NO_META_FLUSH
144 fa70fff2 Jose A. Lopes
145 df726590 Jose A. Lopes
syslogUsage :: String
146 df726590 Jose A. Lopes
syslogUsage = "SYSLOG_USAGE"
147 fa70fff2 Jose A. Lopes
148 fa70fff2 Jose A. Lopes
daemonsGroup :: String
149 fa70fff2 Jose A. Lopes
daemonsGroup = "DAEMONS_GROUP"
150 fa70fff2 Jose A. Lopes
151 fa70fff2 Jose A. Lopes
adminGroup :: String
152 fa70fff2 Jose A. Lopes
adminGroup = "ADMIN_GROUP"
153 fa70fff2 Jose A. Lopes
154 fa70fff2 Jose A. Lopes
masterdUser :: String
155 fa70fff2 Jose A. Lopes
masterdUser = "MASTERD_USER"
156 fa70fff2 Jose A. Lopes
157 fa70fff2 Jose A. Lopes
masterdGroup :: String
158 fa70fff2 Jose A. Lopes
masterdGroup = "MASTERD_GROUP"
159 fa70fff2 Jose A. Lopes
160 fa70fff2 Jose A. Lopes
rapiUser :: String
161 fa70fff2 Jose A. Lopes
rapiUser = "RAPI_USER"
162 fa70fff2 Jose A. Lopes
163 fa70fff2 Jose A. Lopes
rapiGroup :: String
164 fa70fff2 Jose A. Lopes
rapiGroup = "RAPI_GROUP"
165 fa70fff2 Jose A. Lopes
166 fa70fff2 Jose A. Lopes
confdUser :: String
167 fa70fff2 Jose A. Lopes
confdUser = "CONFD_USER"
168 fa70fff2 Jose A. Lopes
169 fa70fff2 Jose A. Lopes
confdGroup :: String
170 fa70fff2 Jose A. Lopes
confdGroup = "CONFD_GROUP"
171 fa70fff2 Jose A. Lopes
172 fa70fff2 Jose A. Lopes
luxidUser :: String
173 fa70fff2 Jose A. Lopes
luxidUser = "LUXID_USER"
174 fa70fff2 Jose A. Lopes
175 fa70fff2 Jose A. Lopes
luxidGroup :: String
176 fa70fff2 Jose A. Lopes
luxidGroup = "LUXID_GROUP"
177 fa70fff2 Jose A. Lopes
178 fa70fff2 Jose A. Lopes
nodedUser :: String
179 fa70fff2 Jose A. Lopes
nodedUser = "NODED_USER"
180 fa70fff2 Jose A. Lopes
181 fa70fff2 Jose A. Lopes
nodedGroup :: String
182 fa70fff2 Jose A. Lopes
nodedGroup = "NODED_GROUP"
183 fa70fff2 Jose A. Lopes
184 fa70fff2 Jose A. Lopes
mondUser :: String
185 fa70fff2 Jose A. Lopes
mondUser = "MOND_USER"
186 fa70fff2 Jose A. Lopes
187 fa70fff2 Jose A. Lopes
mondGroup :: String
188 fa70fff2 Jose A. Lopes
mondGroup = "MOND_GROUP"
189 fa70fff2 Jose A. Lopes
190 fa70fff2 Jose A. Lopes
diskSeparator :: String
191 fa70fff2 Jose A. Lopes
diskSeparator = "DISK_SEPARATOR"
192 fa70fff2 Jose A. Lopes
193 fa70fff2 Jose A. Lopes
qemuimgPath :: String
194 fa70fff2 Jose A. Lopes
qemuimgPath = "QEMUIMG_PATH"
195 fa70fff2 Jose A. Lopes
196 fa70fff2 Jose A. Lopes
htools :: Bool
197 fa70fff2 Jose A. Lopes
htools = True
198 fa70fff2 Jose A. Lopes
199 fa70fff2 Jose A. Lopes
enableConfd :: Bool
200 fa70fff2 Jose A. Lopes
enableConfd = ENABLE_CONFD
201 fa70fff2 Jose A. Lopes
202 fa70fff2 Jose A. Lopes
xenCmd :: String
203 fa70fff2 Jose A. Lopes
xenCmd = "XEN_CMD"
204 fa70fff2 Jose A. Lopes
205 fa70fff2 Jose A. Lopes
enableRestrictedCommands :: Bool
206 fa70fff2 Jose A. Lopes
enableRestrictedCommands = ENABLE_RESTRICTED_COMMANDS
207 fa70fff2 Jose A. Lopes
208 fa70fff2 Jose A. Lopes
enableMond :: Bool
209 fa70fff2 Jose A. Lopes
enableMond = ENABLE_MOND
210 fa70fff2 Jose A. Lopes
211 d250bc5d Klaus Aehlig
hasGnuLn :: Bool
212 d250bc5d Klaus Aehlig
hasGnuLn = HAS_GNU_LN
213 d250bc5d Klaus Aehlig
214 fa70fff2 Jose A. Lopes
-- Write dictionary with man page name as the key and the section
215 fa70fff2 Jose A. Lopes
-- number as the value
216 fa70fff2 Jose A. Lopes
manPages :: [(String, Int)]
217 fa70fff2 Jose A. Lopes
manPages = MAN_PAGES[]
218 2df8f530 Jose A. Lopes
219 2df8f530 Jose A. Lopes
pyAfInet4 :: Int
220 2df8f530 Jose A. Lopes
pyAfInet4 = AF_INET4
221 2df8f530 Jose A. Lopes
222 2df8f530 Jose A. Lopes
pyAfInet6 :: Int
223 2df8f530 Jose A. Lopes
pyAfInet6 = AF_INET6