Statistics
| Branch: | Tag: | Revision:

root / src / AutoConf.hs.in @ 14b4e045

History | View | Annotate | Download (4.3 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 fa70fff2 Jose A. Lopes
packageVersion :: String
32 fa70fff2 Jose A. Lopes
packageVersion = "PACKAGE_VERSION"
33 fa70fff2 Jose A. Lopes
34 fa70fff2 Jose A. Lopes
versionMajor :: Int
35 fa70fff2 Jose A. Lopes
versionMajor = VERSION_MAJOR
36 fa70fff2 Jose A. Lopes
37 fa70fff2 Jose A. Lopes
versionMinor :: Int
38 fa70fff2 Jose A. Lopes
versionMinor = VERSION_MINOR
39 fa70fff2 Jose A. Lopes
40 fa70fff2 Jose A. Lopes
versionRevision :: Int
41 fa70fff2 Jose A. Lopes
versionRevision = VERSION_REVISION
42 fa70fff2 Jose A. Lopes
43 fa70fff2 Jose A. Lopes
versionSuffix :: String
44 fa70fff2 Jose A. Lopes
versionSuffix = "VERSION_SUFFIX"
45 fa70fff2 Jose A. Lopes
46 fa70fff2 Jose A. Lopes
versionFull :: String
47 fa70fff2 Jose A. Lopes
versionFull = "VERSION_FULL"
48 fa70fff2 Jose A. Lopes
49 fa70fff2 Jose A. Lopes
localstatedir :: String
50 fa70fff2 Jose A. Lopes
localstatedir = "LOCALSTATEDIR"
51 fa70fff2 Jose A. Lopes
52 fa70fff2 Jose A. Lopes
sysconfdir :: String
53 fa70fff2 Jose A. Lopes
sysconfdir = "SYSCONFDIR"
54 fa70fff2 Jose A. Lopes
55 fa70fff2 Jose A. Lopes
sshConfigDir :: String
56 fa70fff2 Jose A. Lopes
sshConfigDir = "SSH_CONFIG_DIR"
57 fa70fff2 Jose A. Lopes
58 fa70fff2 Jose A. Lopes
sshLoginUser :: String
59 fa70fff2 Jose A. Lopes
sshLoginUser = "SSH_LOGIN_USER"
60 fa70fff2 Jose A. Lopes
61 fa70fff2 Jose A. Lopes
sshConsoleUser :: String
62 fa70fff2 Jose A. Lopes
sshConsoleUser = "SSH_CONSOLE_USER"
63 fa70fff2 Jose A. Lopes
64 fa70fff2 Jose A. Lopes
exportDir :: String
65 fa70fff2 Jose A. Lopes
exportDir = "EXPORT_DIR"
66 fa70fff2 Jose A. Lopes
67 fa70fff2 Jose A. Lopes
osSearchPath :: [String]
68 fa70fff2 Jose A. Lopes
osSearchPath = OS_SEARCH_PATH[]
69 fa70fff2 Jose A. Lopes
70 fa70fff2 Jose A. Lopes
esSearchPath :: [String]
71 fa70fff2 Jose A. Lopes
esSearchPath = ES_SEARCH_PATH[]
72 fa70fff2 Jose A. Lopes
73 fa70fff2 Jose A. Lopes
xenBootloader :: String
74 fa70fff2 Jose A. Lopes
xenBootloader = "XEN_BOOTLOADER"
75 fa70fff2 Jose A. Lopes
76 fa70fff2 Jose A. Lopes
xenConfigDir :: String
77 fa70fff2 Jose A. Lopes
xenConfigDir = "XEN_CONFIG_DIR"
78 fa70fff2 Jose A. Lopes
79 fa70fff2 Jose A. Lopes
xenKernel :: String
80 fa70fff2 Jose A. Lopes
xenKernel = "XEN_KERNEL"
81 fa70fff2 Jose A. Lopes
82 fa70fff2 Jose A. Lopes
xenInitrd :: String
83 fa70fff2 Jose A. Lopes
xenInitrd = "XEN_INITRD"
84 fa70fff2 Jose A. Lopes
85 fa70fff2 Jose A. Lopes
kvmKernel :: String
86 fa70fff2 Jose A. Lopes
kvmKernel = "KVM_KERNEL"
87 fa70fff2 Jose A. Lopes
88 fa70fff2 Jose A. Lopes
sharedFileStorageDir :: String
89 fa70fff2 Jose A. Lopes
sharedFileStorageDir = "SHARED_FILE_STORAGE_DIR"
90 fa70fff2 Jose A. Lopes
91 fa70fff2 Jose A. Lopes
iallocatorSearchPath :: [String]
92 fa70fff2 Jose A. Lopes
iallocatorSearchPath = IALLOCATOR_SEARCH_PATH[]
93 fa70fff2 Jose A. Lopes
94 fa70fff2 Jose A. Lopes
kvmPath :: String
95 fa70fff2 Jose A. Lopes
kvmPath = "KVM_PATH"
96 fa70fff2 Jose A. Lopes
97 fa70fff2 Jose A. Lopes
ipPath :: String
98 fa70fff2 Jose A. Lopes
ipPath = "IP_PATH"
99 fa70fff2 Jose A. Lopes
100 fa70fff2 Jose A. Lopes
socatPath :: String
101 fa70fff2 Jose A. Lopes
socatPath = "SOCAT"
102 fa70fff2 Jose A. Lopes
103 fa70fff2 Jose A. Lopes
socatUseEscape :: Bool
104 fa70fff2 Jose A. Lopes
socatUseEscape = SOCAT_USE_ESCAPE
105 fa70fff2 Jose A. Lopes
106 fa70fff2 Jose A. Lopes
socatUseCompress :: Bool
107 fa70fff2 Jose A. Lopes
socatUseCompress = SOCAT_USE_COMPRESS
108 fa70fff2 Jose A. Lopes
109 fa70fff2 Jose A. Lopes
lvmStripecount :: Int
110 fa70fff2 Jose A. Lopes
lvmStripecount = LVM_STRIPECOUNT
111 fa70fff2 Jose A. Lopes
112 fa70fff2 Jose A. Lopes
toolsdir :: String
113 fa70fff2 Jose A. Lopes
toolsdir = "TOOLSDIR"
114 fa70fff2 Jose A. Lopes
115 fa70fff2 Jose A. Lopes
gntScripts :: [String]
116 fa70fff2 Jose A. Lopes
gntScripts = GNT_SCRIPTS[]
117 fa70fff2 Jose A. Lopes
118 fa70fff2 Jose A. Lopes
htoolsProgs :: [String]
119 fa70fff2 Jose A. Lopes
htoolsProgs = HS_HTOOLS_PROGS[]
120 fa70fff2 Jose A. Lopes
121 fa70fff2 Jose A. Lopes
pkglibdir :: String
122 fa70fff2 Jose A. Lopes
pkglibdir = "PKGLIBDIR"
123 fa70fff2 Jose A. Lopes
124 fa70fff2 Jose A. Lopes
drbdBarriers :: String
125 fa70fff2 Jose A. Lopes
drbdBarriers = "DRBD_BARRIERS"
126 fa70fff2 Jose A. Lopes
127 fa70fff2 Jose A. Lopes
drbdNoMetaFlush :: Bool
128 fa70fff2 Jose A. Lopes
drbdNoMetaFlush = DRBD_NO_META_FLUSH
129 fa70fff2 Jose A. Lopes
130 fa70fff2 Jose A. Lopes
data SyslogUsageT
131 fa70fff2 Jose A. Lopes
  = SyslogNo
132 fa70fff2 Jose A. Lopes
  | SyslogYes
133 fa70fff2 Jose A. Lopes
  | SyslogOnly
134 fa70fff2 Jose A. Lopes
  deriving (Bounded, Enum)
135 fa70fff2 Jose A. Lopes
136 fa70fff2 Jose A. Lopes
instance Read SyslogUsageT where
137 fa70fff2 Jose A. Lopes
  readsPrec _ r = do
138 fa70fff2 Jose A. Lopes
    (s, r') <- lex r
139 fa70fff2 Jose A. Lopes
    case s of
140 fa70fff2 Jose A. Lopes
      "no" -> [(SyslogNo, r')]
141 fa70fff2 Jose A. Lopes
      "yes" -> [(SyslogYes, r')]
142 fa70fff2 Jose A. Lopes
      "only" -> [(SyslogOnly, r')]
143 fa70fff2 Jose A. Lopes
      _ -> []
144 fa70fff2 Jose A. Lopes
145 fa70fff2 Jose A. Lopes
instance Show SyslogUsageT where
146 fa70fff2 Jose A. Lopes
  show SyslogNo = "no"
147 fa70fff2 Jose A. Lopes
  show SyslogYes = "yes"
148 fa70fff2 Jose A. Lopes
  show SyslogOnly = "only"
149 fa70fff2 Jose A. Lopes
150 fa70fff2 Jose A. Lopes
syslogUsage :: SyslogUsageT
151 fa70fff2 Jose A. Lopes
syslogUsage = read "SYSLOG_USAGE" :: SyslogUsageT
152 fa70fff2 Jose A. Lopes
153 fa70fff2 Jose A. Lopes
daemonsGroup :: String
154 fa70fff2 Jose A. Lopes
daemonsGroup = "DAEMONS_GROUP"
155 fa70fff2 Jose A. Lopes
156 fa70fff2 Jose A. Lopes
adminGroup :: String
157 fa70fff2 Jose A. Lopes
adminGroup = "ADMIN_GROUP"
158 fa70fff2 Jose A. Lopes
159 fa70fff2 Jose A. Lopes
masterdUser :: String
160 fa70fff2 Jose A. Lopes
masterdUser = "MASTERD_USER"
161 fa70fff2 Jose A. Lopes
162 fa70fff2 Jose A. Lopes
masterdGroup :: String
163 fa70fff2 Jose A. Lopes
masterdGroup = "MASTERD_GROUP"
164 fa70fff2 Jose A. Lopes
165 fa70fff2 Jose A. Lopes
rapiUser :: String
166 fa70fff2 Jose A. Lopes
rapiUser = "RAPI_USER"
167 fa70fff2 Jose A. Lopes
168 fa70fff2 Jose A. Lopes
rapiGroup :: String
169 fa70fff2 Jose A. Lopes
rapiGroup = "RAPI_GROUP"
170 fa70fff2 Jose A. Lopes
171 fa70fff2 Jose A. Lopes
confdUser :: String
172 fa70fff2 Jose A. Lopes
confdUser = "CONFD_USER"
173 fa70fff2 Jose A. Lopes
174 fa70fff2 Jose A. Lopes
confdGroup :: String
175 fa70fff2 Jose A. Lopes
confdGroup = "CONFD_GROUP"
176 fa70fff2 Jose A. Lopes
177 fa70fff2 Jose A. Lopes
luxidUser :: String
178 fa70fff2 Jose A. Lopes
luxidUser = "LUXID_USER"
179 fa70fff2 Jose A. Lopes
180 fa70fff2 Jose A. Lopes
luxidGroup :: String
181 fa70fff2 Jose A. Lopes
luxidGroup = "LUXID_GROUP"
182 fa70fff2 Jose A. Lopes
183 fa70fff2 Jose A. Lopes
nodedUser :: String
184 fa70fff2 Jose A. Lopes
nodedUser = "NODED_USER"
185 fa70fff2 Jose A. Lopes
186 fa70fff2 Jose A. Lopes
nodedGroup :: String
187 fa70fff2 Jose A. Lopes
nodedGroup = "NODED_GROUP"
188 fa70fff2 Jose A. Lopes
189 fa70fff2 Jose A. Lopes
mondUser :: String
190 fa70fff2 Jose A. Lopes
mondUser = "MOND_USER"
191 fa70fff2 Jose A. Lopes
192 fa70fff2 Jose A. Lopes
mondGroup :: String
193 fa70fff2 Jose A. Lopes
mondGroup = "MOND_GROUP"
194 fa70fff2 Jose A. Lopes
195 fa70fff2 Jose A. Lopes
diskSeparator :: String
196 fa70fff2 Jose A. Lopes
diskSeparator = "DISK_SEPARATOR"
197 fa70fff2 Jose A. Lopes
198 fa70fff2 Jose A. Lopes
qemuimgPath :: String
199 fa70fff2 Jose A. Lopes
qemuimgPath = "QEMUIMG_PATH"
200 fa70fff2 Jose A. Lopes
201 fa70fff2 Jose A. Lopes
htools :: Bool
202 fa70fff2 Jose A. Lopes
htools = True
203 fa70fff2 Jose A. Lopes
204 fa70fff2 Jose A. Lopes
enableConfd :: Bool
205 fa70fff2 Jose A. Lopes
enableConfd = ENABLE_CONFD
206 fa70fff2 Jose A. Lopes
207 fa70fff2 Jose A. Lopes
xenCmd :: String
208 fa70fff2 Jose A. Lopes
xenCmd = "XEN_CMD"
209 fa70fff2 Jose A. Lopes
210 fa70fff2 Jose A. Lopes
enableSplitQuery :: Bool
211 fa70fff2 Jose A. Lopes
enableSplitQuery = ENABLE_SPLIT_QUERY
212 fa70fff2 Jose A. Lopes
213 fa70fff2 Jose A. Lopes
enableRestrictedCommands :: Bool
214 fa70fff2 Jose A. Lopes
enableRestrictedCommands = ENABLE_RESTRICTED_COMMANDS
215 fa70fff2 Jose A. Lopes
216 fa70fff2 Jose A. Lopes
enableMond :: Bool
217 fa70fff2 Jose A. Lopes
enableMond = ENABLE_MOND
218 fa70fff2 Jose A. Lopes
219 fa70fff2 Jose A. Lopes
-- Write dictionary with man page name as the key and the section
220 fa70fff2 Jose A. Lopes
-- number as the value
221 fa70fff2 Jose A. Lopes
manPages :: [(String, Int)]
222 fa70fff2 Jose A. Lopes
manPages = MAN_PAGES[]