Statistics
| Branch: | Tag: | Revision:

root / src / AutoConf.hs.in @ 12475881

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_PATH"
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
versionedsharedir :: String
125
versionedsharedir = "VERSIONEDSHAREDIR"
126

    
127
drbdBarriers :: String
128
drbdBarriers = "DRBD_BARRIERS"
129

    
130
drbdNoMetaFlush :: Bool
131
drbdNoMetaFlush = DRBD_NO_META_FLUSH
132

    
133
syslogUsage :: String
134
syslogUsage = "SYSLOG_USAGE"
135

    
136
daemonsGroup :: String
137
daemonsGroup = "DAEMONS_GROUP"
138

    
139
adminGroup :: String
140
adminGroup = "ADMIN_GROUP"
141

    
142
masterdUser :: String
143
masterdUser = "MASTERD_USER"
144

    
145
masterdGroup :: String
146
masterdGroup = "MASTERD_GROUP"
147

    
148
rapiUser :: String
149
rapiUser = "RAPI_USER"
150

    
151
rapiGroup :: String
152
rapiGroup = "RAPI_GROUP"
153

    
154
confdUser :: String
155
confdUser = "CONFD_USER"
156

    
157
confdGroup :: String
158
confdGroup = "CONFD_GROUP"
159

    
160
luxidUser :: String
161
luxidUser = "LUXID_USER"
162

    
163
luxidGroup :: String
164
luxidGroup = "LUXID_GROUP"
165

    
166
nodedUser :: String
167
nodedUser = "NODED_USER"
168

    
169
nodedGroup :: String
170
nodedGroup = "NODED_GROUP"
171

    
172
mondUser :: String
173
mondUser = "MOND_USER"
174

    
175
mondGroup :: String
176
mondGroup = "MOND_GROUP"
177

    
178
diskSeparator :: String
179
diskSeparator = "DISK_SEPARATOR"
180

    
181
qemuimgPath :: String
182
qemuimgPath = "QEMUIMG_PATH"
183

    
184
htools :: Bool
185
htools = True
186

    
187
enableConfd :: Bool
188
enableConfd = ENABLE_CONFD
189

    
190
xenCmd :: String
191
xenCmd = "XEN_CMD"
192

    
193
enableSplitQuery :: Bool
194
enableSplitQuery = ENABLE_SPLIT_QUERY
195

    
196
enableRestrictedCommands :: Bool
197
enableRestrictedCommands = ENABLE_RESTRICTED_COMMANDS
198

    
199
enableMond :: Bool
200
enableMond = ENABLE_MOND
201

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