xen-drbd

view config-example2.py @ 32:189e42c31b69

hvm disk parameter fixed
author igor@manas.xt.vpn
date Mon Aug 18 11:48:34 2008 +0300 (2008-08-18)
parents
children
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 'samba' : [
52 'drbd18',
53 'drbd13:samba-home',
54 'drbd14:samba-nbumail',
55 'drbd15:samba-arm3',
56 'drbd16:samba-boxes',
57 'drbd17:samba-profiles'
58 ],
59 'dozor' : ['drbd19'],
60 'vvidd' : ['drbd20'],
61 }
63 bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
64 vlans= ['tagged', 1, 256, 257, 3, 4, 501 ]
65 management_vlan=1
66 trunk='eth0'
67 management_ip=ip_address[i_am]
68 management_gw='10.0.1.253'
70 vbridges_table={
71 'dozor' : ['xenbr3'],
72 'dns' : ['xenbr3'],
73 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'],
74 'igw' : ['tagged0','xenbr3'],
75 'pgw' : ['xenbr3','xenbr501'],
76 'ldap' : ['xenbr3'],
77 'mail' : ['xenbr3'],
78 'proxy' : ['xenbr3'],
79 'samba' : ['tagged0', 'xenbr3'],
80 'vpn' : ['xenbr3'],
81 'vvidd' : ['xenbr3'],
82 'apt' : ['xenbr3'],
83 'uucp' : ['xenbr3'],
84 }
86 # FOR INSTALLATION ONLY
88 ip_network="10.0.3"
89 domain_name="eb.co.ua"
90 ip_nameserver="10.0.3.4"
91 ip_gateway="10.0.3.3"
93 debian_release="etch"
94 debian_mirror="http://debian.org.ua/debian"
95 apt_get_install="less tcpdump libpam-ldap libnss-ldap snmpd libc6-xen openssh-server"