Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / HsConstants.hs @ 26eca119

History | View | Annotate | Download (2.5 kB)

1
{-| HsConstants contains the Haskell constants
2

    
3
This is a transitional module complementary to 'Ganeti.Constants'.  It
4
is intended to contain the Haskell constants that are meant to be
5
generated in Python.
6

    
7
Do not write any definitions in this file other than constants.  Do
8
not even write helper functions.  The definitions in this module are
9
automatically stripped to build the Makefile.am target
10
'ListConstants.hs'.  If there are helper functions in this module,
11
they will also be dragged and it will cause compilation to fail.
12
Therefore, all helper functions should go to a separate module and
13
imported.
14

    
15
-}
16

    
17
{-
18

    
19
Copyright (C) 2013 Google Inc.
20

    
21
This program is free software; you can redistribute it and/or modify
22
it under the terms of the GNU General Public License as published by
23
the Free Software Foundation; either version 2 of the License, or
24
(at your option) any later version.
25

    
26
This program is distributed in the hope that it will be useful, but
27
WITHOUT ANY WARRANTY; without even the implied warranty of
28
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
29
General Public License for more details.
30

    
31
You should have received a copy of the GNU General Public License
32
along with this program; if not, write to the Free Software
33
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
34
02110-1301, USA.
35

    
36
-}
37
module Ganeti.HsConstants where
38

    
39
import AutoConf
40
import Ganeti.ConstantUtils
41

    
42
-- * Admin states
43

    
44
adminstDown :: String
45
adminstDown = "down"
46

    
47
adminstOffline :: String
48
adminstOffline = "offline"
49

    
50
adminstUp :: String
51
adminstUp = "up"
52

    
53
adminstAll :: FrozenSet String
54
adminstAll = mkSet [adminstDown, adminstOffline, adminstUp]
55

    
56
-- * User separation
57

    
58
daemonsGroup :: String
59
daemonsGroup = AutoConf.daemonsGroup
60

    
61
adminGroup :: String
62
adminGroup = AutoConf.adminGroup
63

    
64
masterdUser :: String
65
masterdUser = AutoConf.masterdUser
66

    
67
masterdGroup :: String
68
masterdGroup = AutoConf.masterdGroup
69

    
70
rapiUser :: String
71
rapiUser = AutoConf.rapiUser
72

    
73
rapiGroup :: String
74
rapiGroup = AutoConf.rapiGroup
75

    
76
confdUser :: String
77
confdUser = AutoConf.confdUser
78

    
79
confdGroup :: String
80
confdGroup = AutoConf.confdGroup
81

    
82
luxidUser :: String
83
luxidUser = AutoConf.luxidUser
84

    
85
luxidGroup :: String
86
luxidGroup = AutoConf.luxidGroup
87

    
88
nodedUser :: String
89
nodedUser = AutoConf.nodedUser
90

    
91
nodedGroup :: String
92
nodedGroup = AutoConf.nodedGroup
93

    
94
mondUser :: String
95
mondUser = AutoConf.mondUser
96

    
97
mondGroup :: String
98
mondGroup = AutoConf.mondGroup
99

    
100
sshLoginUser :: String
101
sshLoginUser = AutoConf.sshLoginUser
102

    
103
sshConsoleUser :: String
104
sshConsoleUser = AutoConf.sshConsoleUser