xen-drbd

view od.py @ 30:fc4025aa8287

stripped .py suffixes in file names
author igor
date Sun Jun 29 15:47:02 2008 +0300 (2008-06-29)
parents 2ecda36e8d0d
children 5e499179b5ed
line source
2 node1='debian'
3 node2='mirror'
4 #i_am=node1
6 from socket import gethostname; i_am=gethostname()
7 if i_am != node1 and i_am != node2:
8 raise ValueError, "My hostname (%s) should be equal to node1 (%s) or node2 (%s)" % (i_am, node1, node2)
10 ip_address = {
11 node1: '10.0.5.220',
12 node2: '10.0.5.221',
13 }
15 node1_ip=ip_address[node1]
16 node2_ip=ip_address[node2]
18 domains=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'samba', ]
20 domain_home = {
21 node1 : ['dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', 'apt'],
22 node2 : ['samba'],
23 }
25 kernel = "/boot/vmlinuz-2.6.18-5-xen-686"
26 ramdisk = "/boot/initrd.img-2.6.18-5-xen-686"
28 mem_table={
29 'dns' :64,
30 'gw' :64,
31 'igw' :128,
32 'pgw' :64,
33 'ldap' :64,
34 'mail' :256,
35 'samba' :512,
36 'vpn' :192,
37 'uucp' :128,
38 'apt' :128,
39 }
41 vcpus_table={
42 'dns' :1,
43 'gw' :1,
44 'igw' :1,
45 'pgw' :1,
46 'ldap' :1,
47 'mail' :4,
48 'samba' :4,
49 'vpn' :4,
50 'uucp' :4,
51 'apt' :2,
52 }
54 lvm_vg_name="TURBO"
55 lvm_pv_names="/dev/md2"
56 lvm_lv_drbd_meta_name="meta"
57 lvm_lv_drbd_meta_size="5G"
58 mkfs_options="-m1"
60 disk_table={
61 'gw' : ['drbd1:gw:2G'],
62 'igw' : ['drbd2:igw:2G'],
63 'dns' : ['drbd3:dns:2G'],
64 'vpn' : ['drbd4:vpn:2G'],
65 'apt' : ['drbd5:apt:10G'],
66 'pgw' : ['drbd6:pgw:2G'],
67 'ldap' : ['drbd7:ldap:2G'],
68 'mail' : ['drbd8:mail:2G','drbd9:maildir:100G'],
69 'uucp' : ['drbd11:uucp:3G'],
70 'samba' : [
71 'drbd12:samba:3G',
72 'drbd13:samba-home:100G',
73 'drbd14:samba-nbumail:100G',
74 'drbd17:samba-profiles:100G'
75 ],
76 }
78 bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
79 vlans= ['tagged', 1, 256, 257, 3, 4, 501 ]
80 management_vlan=1
81 trunk='eth0'
82 management_ip=ip_address[i_am]
83 management_gw='10.0.5.253'
84 management_netmask='255.255.255.0'
86 vbridges_table={
87 'dns' : ['xenbr3'],
88 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'],
89 'igw' : ['tagged0','xenbr3'],
90 'pgw' : ['xenbr3','xenbr501'],
91 'ldap' : ['xenbr3'],
92 'mail' : ['xenbr3'],
93 'samba' : ['tagged0', 'xenbr3'],
94 'vpn' : ['xenbr3'],
95 'apt' : ['xenbr3'],
96 'uucp' : ['xenbr3'],
97 }
99 # FOR INSTALLATION ONLY
101 ip_network="10.4.3"
102 ip_netmask="255.255.255.224"
103 domain_name="od.eb.co.ua"
104 ip_nameserver="10.4.3.4"
105 ip_gateway="10.4.3.6"
107 ip_address_table={
108 "dns" :"10.4.3.4",
109 "gw" :"10.4.3.254",
110 "igw" :"10.4.3.3",
111 "pgw" :"10.4.3.6",
112 "ldap" :"10.4.3.11",
113 "mail" :"10.4.3.9",
114 "samba" :"10.4.3.1",
115 "vpn" :"10.4.3.5",
116 "apt" :"10.4.3.7",
117 "uucp" :"10.4.3.16",
118 "jabber":"10.4.3.12",
120 }
122 debian_release="lenny"
123 debian_mirror="http://apt.eb.co.ua:9999/debian"
124 apt_get_install="less tcpdump dnsutils vim ntp screen snmpd libc6-xen openssh-server"