xen-drbd
view od.py @ 17:866525165db8
debootstrap fix
author | igor |
---|---|
date | Tue Feb 12 16:52:24 2008 +0200 (2008-02-12) |
parents | e2eafd7e1b85 |
children | 0aa17b693e59 |
line source
2 node1='debian'
3 node2='mirror'
4 i_am=node1
6 ip_address = {
7 node1: '10.0.5.220',
8 node2: '10.0.5.221',
9 }
11 node1_ip=ip_address[node1]
12 node2_ip=ip_address[node2]
14 domains=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'samba', ]
16 domain_home = {
17 node1 : ['dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', '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 'dns' :64,
26 'gw' :64,
27 'igw' :128,
28 'pgw' :64,
29 'ldap' :64,
30 'mail' :256,
31 'samba' :512,
32 'vpn' :192,
33 'uucp' :128,
34 'apt' :128,
35 }
37 vcpus_table={
38 'dns' :1,
39 'gw' :1,
40 'igw' :1,
41 'pgw' :1,
42 'ldap' :1,
43 'mail' :4,
44 'samba' :4,
45 'vpn' :4,
46 'uucp' :4,
47 'apt' :2,
48 }
50 lvm_vg_name="TURBO"
51 lvm_pv_names="/dev/md2"
52 lvm_lv_drbd_meta_name="meta"
53 lvm_lv_drbd_meta_size="5G"
54 mkfs_options="-m1"
56 disk_table={
57 'gw' : ['drbd1:gw:2G'],
58 'igw' : ['drbd2:igw:2G'],
59 'dns' : ['drbd3:dns:2G'],
60 'vpn' : ['drbd4:vpn:2G'],
61 'apt' : ['drbd5:apt:10G'],
62 'pgw' : ['drbd6:pgw:2G'],
63 'ldap' : ['drbd7:ldap:2G'],
64 'mail' : ['drbd8:mail:2G','drbd9:maildir:100G'],
65 'uucp' : ['drbd11:uucp:3G'],
66 'samba' : [
67 'drbd12:samba:3G',
68 'drbd13:samba-home:100G',
69 'drbd14:samba-nbumail:100G',
70 'drbd17:samba-profiles:100G'
71 ],
72 }
74 bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
75 vlans= ['tagged', 1, 256, 257, 3, 4, 501 ]
76 management_vlan=1
77 trunk='eth0'
78 management_ip=ip_address[i_am]
79 management_gw='10.0.5.253'
81 vbridges_table={
82 'dns' : ['xenbr3'],
83 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'],
84 'igw' : ['tagged0','xenbr3'],
85 'pgw' : ['xenbr3','xenbr501'],
86 'ldap' : ['xenbr3'],
87 'mail' : ['xenbr3'],
88 'samba' : ['tagged0', 'xenbr3'],
89 'vpn' : ['xenbr3'],
90 'apt' : ['xenbr3'],
91 'uucp' : ['xenbr3'],
92 }
94 # FOR INSTALLATION ONLY
96 ip_network="10.4.3"
97 ip_netmask="255.255.255.224"
98 domain_name="od.eb.co.ua"
99 ip_nameserver="10.4.3.4"
100 ip_gateway="10.4.3.6"
102 ip_address_table={
103 "dns" :"10.4.3.4",
104 "gw" :"10.4.3.254",
105 "igw" :"10.4.3.3",
106 "pgw" :"10.4.3.6",
107 "ldap" :"10.4.3.11",
108 "mail" :"10.4.3.9",
109 "samba" :"10.4.3.1",
110 "vpn" :"10.4.3.5",
111 "apt" :"10.4.3.7",
112 "uucp" :"10.4.3.16",
113 "jabber":"10.4.3.12",
115 }
117 debian_release="lenny"
118 debian_mirror="http://apt.eb.co.ua:9999/debian"
119 apt_get_install="less tcpdump dnsutils vim ntp screen snmpd libc6-xen openssh-server"