xen-drbd
view od.py @ 50:151c7ef48ded
Added tag v0.1 for changeset ff5eebae3437f6f0253c5f2e1f0a34a32e0c7001
author | igor@manas.xt.vpn |
---|---|
date | Wed Oct 01 00:39:01 2008 +0300 (2008-10-01) |
parents | 44efea4507ac |
children |
line source
2 node1='manas'
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', 'test']
19 domain_types= [ 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'hvm' ]
21 domain_home = {
22 node1 : ['dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', 'apt'],
23 node2 : ['samba'],
24 }
26 kernel = "/boot/vmlinuz-2.6.18-5-xen-686"
27 ramdisk = "/boot/initrd.img-2.6.18-5-xen-686"
29 mem_table={
30 'dns' :64,
31 'gw' :64,
32 'igw' :128,
33 'pgw' :64,
34 'ldap' :64,
35 'mail' :256,
36 'samba' :512,
37 'vpn' :192,
38 'uucp' :128,
39 'apt' :128,
40 'test' :128,
41 }
43 vcpus_table={
44 'dns' :1,
45 'gw' :1,
46 'igw' :1,
47 'pgw' :1,
48 'ldap' :1,
49 'mail' :4,
50 'samba' :4,
51 'vpn' :4,
52 'uucp' :4,
53 'apt' :2,
54 'test' :2,
55 }
57 lvm_vg_name="TURBO"
58 lvm_pv_names="/dev/md2"
59 lvm_lv_drbd_meta_name="meta"
60 lvm_lv_drbd_meta_size="5G"
61 mkfs_options="-m1"
63 disk_table={
64 'gw' : ['drbd1:gw:2G'],
65 'igw' : ['drbd2:igw:2G'],
66 'dns' : ['drbd3=sda1:dns:2G'],
67 'vpn' : ['drbd4:vpn:2G'],
68 'apt' : ['drbd5:apt:10G'],
69 'pgw' : ['drbd6:pgw:2G'],
70 'ldap' : ['drbd7:ldap:2G'],
71 'mail' : ['drbd8:mail:2G','drbd9:maildir:100G'],
72 'uucp' : ['drbd11:uucp:3G'],
73 'samba' : [
74 'drbd12:samba:3G',
75 'drbd13:samba-home:100G',
76 'drbd14:samba-nbumail:100G',
77 'drbd17:samba-profiles:100G'
78 ],
79 'test' : ['drbd18:test:3G'],
80 }
82 bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
83 vlans= ['tagged', 1, 256, 257, 3, 4, 501 ]
84 management_vlan=1
85 trunk='eth0'
86 management_ip=ip_address[i_am]
87 management_gw='10.0.5.253'
88 management_netmask='255.255.255.0'
90 vbridges_table={
91 'dns' : ['xenbr3'],
92 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'],
93 'igw' : ['tagged0','xenbr3'],
94 'pgw' : ['xenbr3','xenbr501'],
95 'ldap' : ['xenbr3'],
96 'mail' : ['xenbr3'],
97 'samba' : ['tagged0', 'xenbr3'],
98 'vpn' : ['xenbr3'],
99 'apt' : ['xenbr3'],
100 'uucp' : ['xenbr3'],
101 'test' : ['xenbr3'],
102 }
104 # FOR INSTALLATION ONLY
106 ip_network="10.4.3"
107 ip_netmask="255.255.255.224"
108 domain_name="od.eb.co.ua"
109 ip_nameserver="10.4.3.4"
110 ip_gateway="10.4.3.6"
112 ip_address_table={
113 "dns" :"10.4.3.4",
114 "gw" :"10.4.3.254",
115 "igw" :"10.4.3.3",
116 "pgw" :"10.4.3.6",
117 "ldap" :"10.4.3.11",
118 "mail" :"10.4.3.9",
119 "samba" :"10.4.3.1",
120 "vpn" :"10.4.3.5",
121 "apt" :"10.4.3.7",
122 "uucp" :"10.4.3.16",
123 "jabber":"10.4.3.12",
125 }
127 debian_release="lenny"
128 debian_mirror="http://apt.eb.co.ua:9999/debian"
129 apt_get_install="less tcpdump dnsutils vim ntp screen snmpd libc6-xen openssh-server"
131 apt_get_install_table={
132 "vpn" :"openvpn",
133 }