Revision 3329f4de lib/tools/ensure_dirs.py
b/lib/tools/ensure_dirs.py | ||
---|---|---|
34 | 34 |
from ganeti import ssconf |
35 | 35 |
from ganeti import utils |
36 | 36 |
from ganeti import cli |
37 |
from ganeti import pathutils |
|
37 | 38 |
|
38 | 39 |
|
39 | 40 |
(DIR, |
... | ... | |
117 | 118 |
|
118 | 119 |
""" |
119 | 120 |
getent = runtime.GetEnts() |
120 |
masterd_log = constants.DAEMONS_LOGFILES[constants.MASTERD]
|
|
121 |
noded_log = constants.DAEMONS_LOGFILES[constants.NODED]
|
|
122 |
confd_log = constants.DAEMONS_LOGFILES[constants.CONFD]
|
|
123 |
rapi_log = constants.DAEMONS_LOGFILES[constants.RAPI]
|
|
121 |
masterd_log = pathutils.GetLogFilename(constants.MASTERD)
|
|
122 |
noded_log = pathutils.GetLogFilename(constants.NODED)
|
|
123 |
confd_log = pathutils.GetLogFilename(constants.CONFD)
|
|
124 |
rapi_log = pathutils.GetLogFilename(constants.RAPI)
|
|
124 | 125 |
|
125 | 126 |
rapi_dir = os.path.join(constants.DATA_DIR, "rapi") |
126 | 127 |
|
... | ... | |
166 | 167 |
(rapi_dir, DIR, 0750, getent.rapi_uid, getent.masterd_gid), |
167 | 168 |
(constants.RAPI_USERS_FILE, FILE, 0640, getent.rapi_uid, |
168 | 169 |
getent.masterd_gid, False), |
169 |
(constants.RUN_GANETI_DIR, DIR, 0775, getent.masterd_uid,
|
|
170 |
(constants.RUN_DIR, DIR, 0775, getent.masterd_uid, |
|
170 | 171 |
getent.daemons_gid), |
171 | 172 |
(constants.SOCKET_DIR, DIR, 0750, getent.masterd_uid, |
172 | 173 |
getent.daemons_gid), |
Also available in: Unified diff