Statistics
| Branch: | Tag: | Revision:

root / src / AutoConf.hs.in @ 06fd57e5

History | View | Annotate | Download (3.9 kB)

1
{-| Build-time configuration for Ganeti.
2

    
3
Note that this file is autogenerated by the Makefile with a header
4
from @AutoConf.hs.in@.
5

    
6
-}
7

    
8
{-
9

    
10
Copyright (C) 2013 Google Inc.
11

    
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.
16

    
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.
21

    
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
25
02110-1301, USA.
26

    
27
-}
28

    
29
module AutoConf where
30

    
31
packageVersion :: String
32
packageVersion = "PACKAGE_VERSION"
33

    
34
versionMajor :: Int
35
versionMajor = VERSION_MAJOR
36

    
37
versionMinor :: Int
38
versionMinor = VERSION_MINOR
39

    
40
versionRevision :: Int
41
versionRevision = VERSION_REVISION
42

    
43
versionSuffix :: String
44
versionSuffix = "VERSION_SUFFIX"
45

    
46
versionFull :: String
47
versionFull = "VERSION_FULL"
48

    
49
localstatedir :: String
50
localstatedir = "LOCALSTATEDIR"
51

    
52
sysconfdir :: String
53
sysconfdir = "SYSCONFDIR"
54

    
55
sshConfigDir :: String
56
sshConfigDir = "SSH_CONFIG_DIR"
57

    
58
sshLoginUser :: String
59
sshLoginUser = "SSH_LOGIN_USER"
60

    
61
sshConsoleUser :: String
62
sshConsoleUser = "SSH_CONSOLE_USER"
63

    
64
exportDir :: String
65
exportDir = "EXPORT_DIR"
66

    
67
osSearchPath :: [String]
68
osSearchPath = OS_SEARCH_PATH[]
69

    
70
esSearchPath :: [String]
71
esSearchPath = ES_SEARCH_PATH[]
72

    
73
xenBootloader :: String
74
xenBootloader = "XEN_BOOTLOADER"
75

    
76
xenConfigDir :: String
77
xenConfigDir = "XEN_CONFIG_DIR"
78

    
79
xenKernel :: String
80
xenKernel = "XEN_KERNEL"
81

    
82
xenInitrd :: String
83
xenInitrd = "XEN_INITRD"
84

    
85
kvmKernel :: String
86
kvmKernel = "KVM_KERNEL"
87

    
88
sharedFileStorageDir :: String
89
sharedFileStorageDir = "SHARED_FILE_STORAGE_DIR"
90

    
91
iallocatorSearchPath :: [String]
92
iallocatorSearchPath = IALLOCATOR_SEARCH_PATH[]
93

    
94
kvmPath :: String
95
kvmPath = "KVM_PATH"
96

    
97
ipPath :: String
98
ipPath = "IP_PATH"
99

    
100
socatPath :: String
101
socatPath = "SOCAT"
102

    
103
socatUseEscape :: Bool
104
socatUseEscape = SOCAT_USE_ESCAPE
105

    
106
socatUseCompress :: Bool
107
socatUseCompress = SOCAT_USE_COMPRESS
108

    
109
lvmStripecount :: Int
110
lvmStripecount = LVM_STRIPECOUNT
111

    
112
toolsdir :: String
113
toolsdir = "TOOLSDIR"
114

    
115
gntScripts :: [String]
116
gntScripts = GNT_SCRIPTS[]
117

    
118
htoolsProgs :: [String]
119
htoolsProgs = HS_HTOOLS_PROGS[]
120

    
121
pkglibdir :: String
122
pkglibdir = "PKGLIBDIR"
123

    
124
drbdBarriers :: String
125
drbdBarriers = "DRBD_BARRIERS"
126

    
127
drbdNoMetaFlush :: Bool
128
drbdNoMetaFlush = DRBD_NO_META_FLUSH
129

    
130
syslogUsage :: String
131
syslogUsage = "SYSLOG_USAGE"
132

    
133
daemonsGroup :: String
134
daemonsGroup = "DAEMONS_GROUP"
135

    
136
adminGroup :: String
137
adminGroup = "ADMIN_GROUP"
138

    
139
masterdUser :: String
140
masterdUser = "MASTERD_USER"
141

    
142
masterdGroup :: String
143
masterdGroup = "MASTERD_GROUP"
144

    
145
rapiUser :: String
146
rapiUser = "RAPI_USER"
147

    
148
rapiGroup :: String
149
rapiGroup = "RAPI_GROUP"
150

    
151
confdUser :: String
152
confdUser = "CONFD_USER"
153

    
154
confdGroup :: String
155
confdGroup = "CONFD_GROUP"
156

    
157
luxidUser :: String
158
luxidUser = "LUXID_USER"
159

    
160
luxidGroup :: String
161
luxidGroup = "LUXID_GROUP"
162

    
163
nodedUser :: String
164
nodedUser = "NODED_USER"
165

    
166
nodedGroup :: String
167
nodedGroup = "NODED_GROUP"
168

    
169
mondUser :: String
170
mondUser = "MOND_USER"
171

    
172
mondGroup :: String
173
mondGroup = "MOND_GROUP"
174

    
175
diskSeparator :: String
176
diskSeparator = "DISK_SEPARATOR"
177

    
178
qemuimgPath :: String
179
qemuimgPath = "QEMUIMG_PATH"
180

    
181
htools :: Bool
182
htools = True
183

    
184
enableConfd :: Bool
185
enableConfd = ENABLE_CONFD
186

    
187
xenCmd :: String
188
xenCmd = "XEN_CMD"
189

    
190
enableSplitQuery :: Bool
191
enableSplitQuery = ENABLE_SPLIT_QUERY
192

    
193
enableRestrictedCommands :: Bool
194
enableRestrictedCommands = ENABLE_RESTRICTED_COMMANDS
195

    
196
enableMond :: Bool
197
enableMond = ENABLE_MOND
198

    
199
-- Write dictionary with man page name as the key and the section
200
-- number as the value
201
manPages :: [(String, Int)]
202
manPages = MAN_PAGES[]