Statistics
| Branch: | Tag: | Revision:

root / src / AutoConf.hs.in @ d24fc4b6

History | View | Annotate | Download (4 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
dirVersion :: String
50
dirVersion = "DIRVERSION"
51

    
52
localstatedir :: String
53
localstatedir = "LOCALSTATEDIR"
54

    
55
sysconfdir :: String
56
sysconfdir = "SYSCONFDIR"
57

    
58
sshConfigDir :: String
59
sshConfigDir = "SSH_CONFIG_DIR"
60

    
61
sshLoginUser :: String
62
sshLoginUser = "SSH_LOGIN_USER"
63

    
64
sshConsoleUser :: String
65
sshConsoleUser = "SSH_CONSOLE_USER"
66

    
67
exportDir :: String
68
exportDir = "EXPORT_DIR"
69

    
70
osSearchPath :: [String]
71
osSearchPath = OS_SEARCH_PATH[]
72

    
73
esSearchPath :: [String]
74
esSearchPath = ES_SEARCH_PATH[]
75

    
76
xenBootloader :: String
77
xenBootloader = "XEN_BOOTLOADER"
78

    
79
xenConfigDir :: String
80
xenConfigDir = "XEN_CONFIG_DIR"
81

    
82
xenKernel :: String
83
xenKernel = "XEN_KERNEL"
84

    
85
xenInitrd :: String
86
xenInitrd = "XEN_INITRD"
87

    
88
kvmKernel :: String
89
kvmKernel = "KVM_KERNEL"
90

    
91
sharedFileStorageDir :: String
92
sharedFileStorageDir = "SHARED_FILE_STORAGE_DIR"
93

    
94
iallocatorSearchPath :: [String]
95
iallocatorSearchPath = IALLOCATOR_SEARCH_PATH[]
96

    
97
kvmPath :: String
98
kvmPath = "KVM_PATH"
99

    
100
ipPath :: String
101
ipPath = "IP_PATH"
102

    
103
socatPath :: String
104
socatPath = "SOCAT_PATH"
105

    
106
socatUseEscape :: Bool
107
socatUseEscape = SOCAT_USE_ESCAPE
108

    
109
socatUseCompress :: Bool
110
socatUseCompress = SOCAT_USE_COMPRESS
111

    
112
lvmStripecount :: Int
113
lvmStripecount = LVM_STRIPECOUNT
114

    
115
toolsdir :: String
116
toolsdir = "TOOLSDIR"
117

    
118
gntScripts :: [String]
119
gntScripts = GNT_SCRIPTS[]
120

    
121
htoolsProgs :: [String]
122
htoolsProgs = HS_HTOOLS_PROGS[]
123

    
124
pkglibdir :: String
125
pkglibdir = "PKGLIBDIR"
126

    
127
sharedir :: String
128
sharedir = "SHAREDIR"
129

    
130
versionedsharedir :: String
131
versionedsharedir = "VERSIONEDSHAREDIR"
132

    
133
drbdBarriers :: String
134
drbdBarriers = "DRBD_BARRIERS"
135

    
136
drbdNoMetaFlush :: Bool
137
drbdNoMetaFlush = DRBD_NO_META_FLUSH
138

    
139
syslogUsage :: String
140
syslogUsage = "SYSLOG_USAGE"
141

    
142
daemonsGroup :: String
143
daemonsGroup = "DAEMONS_GROUP"
144

    
145
adminGroup :: String
146
adminGroup = "ADMIN_GROUP"
147

    
148
masterdUser :: String
149
masterdUser = "MASTERD_USER"
150

    
151
masterdGroup :: String
152
masterdGroup = "MASTERD_GROUP"
153

    
154
rapiUser :: String
155
rapiUser = "RAPI_USER"
156

    
157
rapiGroup :: String
158
rapiGroup = "RAPI_GROUP"
159

    
160
confdUser :: String
161
confdUser = "CONFD_USER"
162

    
163
confdGroup :: String
164
confdGroup = "CONFD_GROUP"
165

    
166
luxidUser :: String
167
luxidUser = "LUXID_USER"
168

    
169
luxidGroup :: String
170
luxidGroup = "LUXID_GROUP"
171

    
172
nodedUser :: String
173
nodedUser = "NODED_USER"
174

    
175
nodedGroup :: String
176
nodedGroup = "NODED_GROUP"
177

    
178
mondUser :: String
179
mondUser = "MOND_USER"
180

    
181
mondGroup :: String
182
mondGroup = "MOND_GROUP"
183

    
184
diskSeparator :: String
185
diskSeparator = "DISK_SEPARATOR"
186

    
187
qemuimgPath :: String
188
qemuimgPath = "QEMUIMG_PATH"
189

    
190
htools :: Bool
191
htools = True
192

    
193
enableConfd :: Bool
194
enableConfd = ENABLE_CONFD
195

    
196
xenCmd :: String
197
xenCmd = "XEN_CMD"
198

    
199
enableSplitQuery :: Bool
200
enableSplitQuery = ENABLE_SPLIT_QUERY
201

    
202
enableRestrictedCommands :: Bool
203
enableRestrictedCommands = ENABLE_RESTRICTED_COMMANDS
204

    
205
enableMond :: Bool
206
enableMond = ENABLE_MOND
207

    
208
-- Write dictionary with man page name as the key and the section
209
-- number as the value
210
manPages :: [(String, Int)]
211
manPages = MAN_PAGES[]