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