xen-drbd
view eb.py @ 5:1c7442c793a1
*** empty log message ***
author | eb |
---|---|
date | Fri Oct 05 16:59:35 2007 +0300 (2007-10-05) |
parents | 3ce02620180c |
children | 44efea4507ac |
line source
2 node1='debian'
3 node2='mirror'
4 i_am=node1
6 ip_address = {
7 node1: '10.0.1.19',
8 node2: '10.0.1.20',
9 }
11 node1_ip=ip_address[node1]
12 node2_ip=ip_address[node2]
14 domains=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'proxy', 'pgw', 'ldap', 'mail', 'uucp', 'samba', 'dozor', 'vvidd', ]
16 domain_home = {
17 node1 : ['dozor', 'dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'proxy', 'vpn', 'uucp', 'vvidd', 'apt'],
18 node2 : ['samba'],
19 }
21 kernel = "/boot/vmlinuz-2.6.18-4-xen-686"
22 ramdisk = "/boot/initrd.img-2.6.18-4-xen-686-domU"
24 mem_table={
25 'dozor' :256,
26 'dns' :64,
27 'gw' :64,
28 'igw' :128,
29 'pgw' :64,
30 'ldap' :64,
31 'mail' :256,
32 'proxy' :256,
33 'samba' :512,
34 'vpn' :192,
35 'uucp' :128,
36 'vvidd' :64,
37 'apt' :128,
38 }
40 vcpus_table={
41 'dozor' :4,
42 'dns' :2,
43 'gw' :1,
44 'igw' :1,
45 'pgw' :1,
46 'ldap' :1,
47 'mail' :4,
48 'proxy' :4,
49 'samba' :4,
50 'vpn' :4,
51 'uucp' :4,
52 'vvidd' :4,
53 'apt' :2,
54 }
56 lvm_vg_name="TURBO"
57 disk_table={
58 'gw' : ['drbd1'],
59 'igw' : ['drbd2'],
60 'dns' : ['drbd3'],
61 'vpn' : ['drbd4'],
62 'apt' : ['drbd5'],
63 'proxy' : ['drbd6'],
64 'pgw' : ['drbd7'],
65 'ldap' : ['drbd8'],
66 'mail' : ['drbd10','drbd12:maildir'],
67 'uucp' : ['drbd11'],
68 'samba' : [
69 'drbd18',
70 'drbd13:samba-home',
71 'drbd14:samba-nbumail',
72 'drbd15:samba-arm3',
73 'drbd16:samba-boxes',
74 'drbd17:samba-profiles'
75 ],
76 'dozor' : ['drbd19'],
77 'vvidd' : ['drbd20'],
78 }
80 bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
81 vlans= ['tagged', 1, 256, 257, 3, 4, 501 ]
82 management_vlan=1
83 trunk='eth0'
84 management_ip=ip_address[i_am]
85 management_gw='10.0.1.253'
87 vbridges_table={
88 'dozor' : ['xenbr3'],
89 'dns' : ['xenbr3'],
90 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'],
91 'igw' : ['tagged0','xenbr3'],
92 'pgw' : ['xenbr3','xenbr501'],
93 'ldap' : ['xenbr3'],
94 'mail' : ['xenbr3'],
95 'proxy' : ['xenbr3'],
96 'samba' : ['tagged0', 'xenbr3'],
97 'vpn' : ['xenbr3'],
98 'vvidd' : ['xenbr3'],
99 'apt' : ['xenbr3'],
100 'uucp' : ['xenbr3'],
101 }
103 # FOR INSTALLATION ONLY
105 ip_network="10.0.3"
106 domain_name="eb.co.ua"
107 ip_nameserver="10.0.3.4"
108 ip_gateway="10.0.3.3"
110 debian_release="etch"
111 debian_mirror="http://debian.org.ua/debian"
112 apt_get_install="less tcpdump libpam-ldap libnss-ldap snmpd libc6-xen openssh-server"