xen-drbd
annotate examples/network1 @ 60:dd23766a87c6
Minor fixes. Hvmlaoder now can be specified by its path in the netowrk config file.
Also slightly changed drbdadm call
Also slightly changed drbdadm call
author | igor@book.xt.vpn |
---|---|
date | Thu Mar 19 19:42:41 2009 +0200 (2009-03-19) |
parents | |
children |
rev | line source |
---|---|
root@54 | 1 |
root@54 | 2 node1='lab8' |
root@54 | 3 node2='linux10' |
root@54 | 4 |
root@54 | 5 from socket import gethostname; i_am=gethostname() |
root@54 | 6 if i_am != node1 and i_am != node2: |
root@54 | 7 raise ValueError, "My hostname (%s) should be equal to node1 (%s) or node2 (%s)" % (i_am, node1, node2) |
root@54 | 8 |
root@54 | 9 ip_address = { |
root@54 | 10 node1: '192.168.15.8', |
root@54 | 11 node2: '192.168.15.10', |
root@54 | 12 } |
root@54 | 13 |
root@54 | 14 node1_ip=ip_address[node1] |
root@54 | 15 node2_ip=ip_address[node2] |
root@54 | 16 |
root@54 | 17 domains= [ 'gw1', 'gw2', 'dns', 'mail', 'ts' ] |
root@54 | 18 domain_types= [ 'linux', 'linux', 'linux', 'linux', 'linux' ] |
root@54 | 19 |
root@54 | 20 domain_home= { |
root@54 | 21 node1 : ['gw1', 'gw2', 'dns'], |
root@54 | 22 node2 : ['mail', 'ts'], |
root@54 | 23 } |
root@54 | 24 |
root@54 | 25 kernel = "/boot/vmlinuz-2.6.18-6-xen-686" |
root@54 | 26 ramdisk = "/boot/initrd.img-2.6.18-6-xen-686" |
root@54 | 27 |
root@54 | 28 mem_table={ |
root@54 | 29 'gw1' :256, |
root@54 | 30 'gw2' :256, |
root@54 | 31 'dns' :256, |
root@54 | 32 'mail' :256, |
root@54 | 33 'ts' :256, |
root@54 | 34 } |
root@54 | 35 |
root@54 | 36 vcpus_table={ |
root@54 | 37 'gw1' :1, |
root@54 | 38 'gw2' :1, |
root@54 | 39 'dns' :1, |
root@54 | 40 'mail' :1, |
root@54 | 41 'ts' :1, |
root@54 | 42 } |
root@54 | 43 |
root@54 | 44 lvm_pv_names="/dev/null" |
root@54 | 45 lvm_vg_name="VG0" |
root@54 | 46 lvm_lv_drbd_meta_size="2G" |
root@54 | 47 lvm_lv_drbd_meta_name="meta" |
root@54 | 48 |
root@54 | 49 disk_table={ |
root@54 | 50 'gw1' : ['drbd1:gw1:2G'], |
root@54 | 51 'gw2' : ['drbd2:gw2:2G'], |
root@54 | 52 'dns' : ['drbd3:dns:2G'], |
root@54 | 53 'mail' : ['drbd4:mail:2G'], |
root@54 | 54 'ts' : ['drbd5:ts:5G'], |
root@54 | 55 } |
root@54 | 56 |
root@54 | 57 bridges=['tagged0', 'br100', 'br1', 'br2', 'br3' ] |
root@54 | 58 vlans= ['tagged', 100, 141, 142, 143 ] |
root@54 | 59 management_interface='br100' |
root@54 | 60 trunk='eth0' |
root@54 | 61 management_ip=ip_address[i_am] |
root@54 | 62 management_gw='192.168.15.254' |
root@54 | 63 management_netmask='255.255.255.0' |
root@54 | 64 |
root@54 | 65 vbridges_table={ |
root@54 | 66 'gw1' : ['br2','br3'], |
root@54 | 67 'gw2' : ['br2','br1'], |
root@54 | 68 'dns' : ['br2'], |
root@54 | 69 'mail' : ['br2'], |
root@54 | 70 'ts' : ['br1'], |
root@54 | 71 } |
root@54 | 72 |
root@54 | 73 # FOR INSTALLATION ONLY |
root@54 | 74 |
root@54 | 75 ip_network="192.168.142" |
root@54 | 76 ip_netmask="255.255.255.0" |
root@54 | 77 domain_name="net4.unix.nt" |
root@54 | 78 ip_nameserver="192.168.142.2" |
root@54 | 79 ip_gateway="192.168.142.1" |
root@54 | 80 |
root@54 | 81 ip_address_table={ |
root@54 | 82 'gw1' : '192.168.142.1', |
root@54 | 83 'gw2' : '192.168.142.4', |
root@54 | 84 'dns' : '192.168.142.2', |
root@54 | 85 'mail' : '192.168.142.3', |
root@54 | 86 'ts' : '192.168.141.2', |
root@54 | 87 } |
root@54 | 88 |
root@54 | 89 debian_release="sid" |
root@54 | 90 debian_mirror="http://10.0.35.1:9999/debian" |
root@54 | 91 apt_get_install="less tcpdump libc6-xen openssh host" |
root@54 | 92 |
root@54 | 93 apt_get_install_table={ |
root@54 | 94 "dns" :"bind9 bind9utils", |
root@54 | 95 "mail" :"sendmail sensible-mda", |
root@54 | 96 "ts" :"xfce4 gdm vnc4server", |
root@54 | 97 } |
root@54 | 98 |
root@54 | 99 mkfs_options="" |