xen-drbd

view eb.py @ 3:3ce02620180c

+ eb.py
author igor
date Fri Sep 28 16:08:02 2007 +0300 (2007-09-28)
parents
children 0b0a886abd08
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 lvm_vg_name="TURBO"
41 disk_table={
42 'gw' : ['drbd1'],
43 'igw' : ['drbd2'],
44 'dns' : ['drbd3'],
45 'vpn' : ['drbd4'],
46 'apt' : ['drbd5'],
47 'proxy' : ['drbd6'],
48 'pgw' : ['drbd7'],
49 'ldap' : ['drbd8'],
50 'mail' : ['drbd10','drbd12:maildir'],
51 'uucp' : ['drbd11'],
52 'samba' : [
53 'drbd18',
54 'drbd13:samba-home',
55 'drbd14:samba-nbumail',
56 'drbd15:samba-arm3',
57 'drbd16:samba-boxes',
58 'drbd17:samba-profiles'
59 ],
60 'dozor' : ['drbd19'],
61 'vvidd' : ['drbd20'],
62 }
64 bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
65 vlans= ['tagged', 1, 256, 257, 3, 4, 501 ]
66 management_vlan=1
67 trunk='eth0'
68 management_ip=ip_address[i_am]
69 management_gw='10.0.1.253'
71 vbridges_table={
72 'dozor' : ['xenbr3'],
73 'dns' : ['xenbr3'],
74 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'],
75 'igw' : ['tagged0','xenbr3'],
76 'pgw' : ['xenbr3','xenbr501'],
77 'ldap' : ['xenbr3'],
78 'mail' : ['xenbr3'],
79 'proxy' : ['xenbr3'],
80 'samba' : ['tagged0', 'xenbr3'],
81 'vpn' : ['xenbr3'],
82 'vvidd' : ['xenbr3'],
83 'apt' : ['xenbr3'],
84 'uucp' : ['xenbr3'],
85 }
87 # FOR INSTALLATION ONLY
89 ip_network="10.0.3"
90 domain_name="eb.co.ua"
91 ip_nameserver="10.0.3.4"
92 ip_gateway="10.0.3.3"
94 debian_release="etch"
95 debian_mirror="http://debian.org.ua/debian"
96 apt_get_install="less tcpdump libpam-ldap libnss-ldap snmpd libc6-xen openssh-server"