xen-drbd
view config-example.py @ 9:e2eafd7e1b85
Доработана инсталляции системы виртуализации
author | igor |
---|---|
date | Tue Feb 12 13:34:12 2008 +0200 (2008-02-12) |
parents | |
children |
line source
2 node1='dom0'
3 node2='dom0m'
4 i_am=node1
6 ip_address = {
7 node1: '192.168.1.190',
8 node2: '192.168.1.191'
9 }
11 node1_ip=ip_address[node1]
12 node2_ip=ip_address[node2]
14 domains=['log', 'dns', 'gw', 'igw', 'ldap', 'mail', 'proxy', 'samba', 'vpn', 'intraweb', 'jabber']
16 domain_home = {
17 node1 : ['log', 'dns', 'gw', 'igw', 'ldap', 'mail', 'proxy', 'vpn', 'intraweb', 'jabber'],
18 node2 : ['samba'],
19 }
21 kernel = "/boot/vmlinuz-2.6.18-5-xen-686"
22 ramdisk = "/boot/initrd.img-2.6.18-5-xen-686"
24 mem_table={
25 'log' :256,
26 'dns' :64,
27 'gw' :64,
28 'igw' :128,
29 'ldap' :64,
30 'mail' :256,
31 'proxy' :256,
32 'samba' :256,
33 'vpn' :64,
34 'web' :128,
35 'intraweb':128,
36 'jabber':64,
37 }
39 lvm_vg_name="XEN"
40 disk_table={
41 'log' : ['10G'],
42 'dns' : ['2G'],
43 'gw' : ['2G'],
44 'igw' : ['2G'],
45 'ldap' : ['2G'],
46 'mail' : ['2G','maildir:2G'],
47 'proxy' : ['10G'],
48 'samba' : ['2G','samba-share:2G'],
49 'vpn' : ['2G'],
50 'web' : ['10G'],
51 'intraweb' : ['10G'],
52 'jabber' : ['2G'],
53 }
55 bridges=['br0','br1']
56 vlans=[4094,4093]
57 management_vlan=4094 # vlan 2
58 trunk='eth1'
59 management_ip=ip_address[i_am]
60 management_gw='192.168.1.197'
62 vbridges_table={
63 'log' : ['br1'],
64 'dns' : ['br1'],
65 'gw' : ['br0', 'br1'],
66 'igw' : ['br1'],
67 'ldap' : ['br1'],
68 'mail' : ['br1'],
69 'proxy' : ['br1'],
70 'samba' : ['br1'],
71 'vpn' : ['br1'],
72 'web' : ['br1'],
73 'intraweb' : ['br1'],
74 'jabber' : ['br1'],
75 }
77 ip_network="192.168.3"
78 domain_name="example.com"
79 ip_nameserver="192.168.3.2"
80 ip_gateway="192.168.3.3"
82 debian_release="etch"
83 debian_mirror="http://debian.org.ua/debian"
84 apt_get_install="less tcpdump libpam-ldap libnss-ldap snmpd libc6-xen openssh-server"