Revision 4a34c5cf
b/lib/backend.py | ||
---|---|---|
163 | 163 |
constants.VNC_PASSWORD_FILE, |
164 | 164 |
constants.RAPI_CERT_FILE, |
165 | 165 |
constants.RAPI_USERS_FILE, |
166 |
constants.HMAC_CLUSTER_KEY, |
|
166 | 167 |
]) |
167 | 168 |
|
168 | 169 |
for hv_name in constants.HYPER_TYPES: |
b/lib/bootstrap.py | ||
---|---|---|
116 | 116 |
if not os.path.exists(constants.RAPI_CERT_FILE): |
117 | 117 |
_GenerateSelfSignedSslCert(constants.RAPI_CERT_FILE) |
118 | 118 |
|
119 |
if not os.path.exists(constants.HMAC_CLUSTER_KEY): |
|
120 |
utils.WriteFile(constants.HMAC_CLUSTER_KEY, |
|
121 |
data=utils.GenerateSecret(), |
|
122 |
mode=0400) |
|
123 |
|
|
119 | 124 |
result = utils.RunCmd([constants.NODE_INITD_SCRIPT, "restart"]) |
120 | 125 |
|
121 | 126 |
if result.failed: |
b/lib/cmdlib.py | ||
---|---|---|
1642 | 1642 |
constants.SSH_KNOWN_HOSTS_FILE, |
1643 | 1643 |
constants.RAPI_CERT_FILE, |
1644 | 1644 |
constants.RAPI_USERS_FILE, |
1645 |
constants.HMAC_CLUSTER_KEY, |
|
1645 | 1646 |
]) |
1646 | 1647 |
|
1647 | 1648 |
enabled_hypervisors = lu.cfg.GetClusterInfo().enabled_hypervisors |
b/lib/constants.py | ||
---|---|---|
97 | 97 |
CLUSTER_CONF_FILE = DATA_DIR + "/config.data" |
98 | 98 |
SSL_CERT_FILE = DATA_DIR + "/server.pem" |
99 | 99 |
RAPI_CERT_FILE = DATA_DIR + "/rapi.pem" |
100 |
HMAC_CLUSTER_KEY = DATA_DIR + "/hmac.key" |
|
100 | 101 |
WATCHER_STATEFILE = DATA_DIR + "/watcher.data" |
101 | 102 |
INSTANCE_UPFILE = RUN_GANETI_DIR + "/instance-status" |
102 | 103 |
SSH_KNOWN_HOSTS_FILE = DATA_DIR + "/known_hosts" |
Also available in: Unified diff