Revision cb91d46e lib/constants.py
b/lib/constants.py | ||
---|---|---|
33 | 33 |
DATA_DIR = "/var/lib/ganeti" |
34 | 34 |
CLUSTER_CONF_FILE = DATA_DIR + "/config.data" |
35 | 35 |
SSL_CERT_FILE = DATA_DIR + "/server.pem" |
36 |
HYPERCONF_FILE = DATA_DIR + "/hypervisor" |
|
37 | 36 |
WATCHER_STATEFILE = DATA_DIR + "/restart_state" |
38 | 37 |
|
39 |
ETC_DIR = "/etc/ganeti" |
|
40 |
|
|
41 |
MASTER_CRON_FILE = ETC_DIR + "/master-cron" |
|
42 |
MASTER_CRON_LINK = "/etc/cron.d/ganeti-master-cron" |
|
43 | 38 |
NODE_INITD_SCRIPT = "/etc/init.d/ganeti" |
44 |
NODE_INITD_NAME = "ganeti" |
|
45 | 39 |
DEFAULT_NODED_PORT = 1811 |
46 | 40 |
FIRST_DRBD_PORT = 11000 |
47 | 41 |
LAST_DRBD_PORT = 14999 |
... | ... | |
84 | 78 |
DISK_TEMPLATES = frozenset([DT_DISKLESS, DT_PLAIN, |
85 | 79 |
DT_LOCAL_RAID1, DT_REMOTE_RAID1]) |
86 | 80 |
|
87 |
# file groups |
|
88 |
CLUSTER_CONF_FILES = ["/etc/hosts", |
|
89 |
"/etc/ssh/ssh_known_hosts", |
|
90 |
"/etc/ssh/ssh_host_dsa_key", |
|
91 |
"/etc/ssh/ssh_host_dsa_key.pub", |
|
92 |
"/etc/ssh/ssh_host_rsa_key", |
|
93 |
"/etc/ssh/ssh_host_rsa_key.pub", |
|
94 |
"/root/.ssh/authorized_keys", |
|
95 |
"/root/.ssh/id_dsa", |
|
96 |
"/root/.ssh/id_dsa.pub", |
|
97 |
CLUSTER_CONF_FILE, |
|
98 |
SSL_CERT_FILE, |
|
99 |
MASTER_CRON_FILE, |
|
100 |
] |
|
101 |
|
|
102 |
MASTER_CONFIGFILES = [MASTER_CRON_LINK,] |
|
103 |
|
|
104 |
NODE_CONFIGFILES = [NODE_INITD_SCRIPT, |
|
105 |
"/etc/rc2.d/S20%s" % NODE_INITD_NAME, |
|
106 |
"/etc/rc0.d/K80%s" % NODE_INITD_NAME] |
|
107 |
|
|
108 | 81 |
# import/export config options |
109 | 82 |
INISECT_EXP = "export" |
110 | 83 |
INISECT_INS = "instance" |
Also available in: Unified diff