xen-drbd

diff examples/network1 @ 56:14e75a085db0

minifix
author root@linux10
date Fri Oct 10 23:13:58 2008 +0000 (2008-10-10)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/network1	Fri Oct 10 23:13:58 2008 +0000
     1.3 @@ -0,0 +1,99 @@
     1.4 +
     1.5 +node1='lab8'
     1.6 +node2='linux10'
     1.7 +
     1.8 +from socket import gethostname; i_am=gethostname()
     1.9 +if i_am != node1 and i_am != node2:
    1.10 +    raise ValueError, "My hostname (%s) should be equal to node1 (%s) or node2 (%s)" % (i_am, node1, node2)
    1.11 +
    1.12 +ip_address = {
    1.13 +	node1: '192.168.15.8',
    1.14 +	node2: '192.168.15.10',
    1.15 +}
    1.16 +
    1.17 +node1_ip=ip_address[node1]
    1.18 +node2_ip=ip_address[node2]
    1.19 +
    1.20 +domains=	[ 'gw1',   'gw2',   'dns',   'mail',  'ts' ]
    1.21 +domain_types=	[ 'linux', 'linux', 'linux', 'linux', 'linux' ]
    1.22 +
    1.23 +domain_home= {
    1.24 +	node1 : ['gw1', 'gw2', 'dns'],
    1.25 +	node2 : ['mail', 'ts'], 
    1.26 +}
    1.27 +
    1.28 +kernel = "/boot/vmlinuz-2.6.18-6-xen-686"
    1.29 +ramdisk = "/boot/initrd.img-2.6.18-6-xen-686"
    1.30 +
    1.31 +mem_table={
    1.32 +	'gw1'	:256, 
    1.33 +	'gw2'	:256, 
    1.34 +	'dns' 	:256, 
    1.35 +	'mail'	:256, 
    1.36 +	'ts' 	:256, 
    1.37 +}
    1.38 +
    1.39 +vcpus_table={
    1.40 +	'gw1'	:1, 
    1.41 +	'gw2'	:1, 
    1.42 +	'dns' 	:1, 
    1.43 +	'mail'	:1, 
    1.44 +	'ts' 	:1, 
    1.45 +}
    1.46 +
    1.47 +lvm_pv_names="/dev/null"
    1.48 +lvm_vg_name="VG0"
    1.49 +lvm_lv_drbd_meta_size="2G"
    1.50 +lvm_lv_drbd_meta_name="meta"
    1.51 +
    1.52 +disk_table={
    1.53 +	'gw1' 		: ['drbd1:gw1:2G'], 
    1.54 +	'gw2' 		: ['drbd2:gw2:2G'], 
    1.55 +	'dns' 		: ['drbd3:dns:2G'], 
    1.56 +	'mail' 		: ['drbd4:mail:2G'], 
    1.57 +	'ts' 		: ['drbd5:ts:5G'], 
    1.58 +}
    1.59 +
    1.60 +bridges=['tagged0', 'br100', 'br1', 'br2', 'br3' ]
    1.61 +vlans=  ['tagged',      100,  141,   142,   143  ]
    1.62 +management_interface='br100'
    1.63 +trunk='eth0'
    1.64 +management_ip=ip_address[i_am]
    1.65 +management_gw='192.168.15.254'
    1.66 +management_netmask='255.255.255.0'
    1.67 +
    1.68 +vbridges_table={
    1.69 +	'gw1' 		: ['br2','br3'], 
    1.70 +	'gw2' 		: ['br2','br1'], 
    1.71 +	'dns' 		: ['br2'], 
    1.72 +	'mail' 		: ['br2'], 
    1.73 +	'ts' 		: ['br1'], 
    1.74 +}
    1.75 +
    1.76 +# FOR INSTALLATION ONLY
    1.77 +
    1.78 +ip_network="192.168.142"
    1.79 +ip_netmask="255.255.255.0"
    1.80 +domain_name="net4.unix.nt"
    1.81 +ip_nameserver="192.168.142.2"
    1.82 +ip_gateway="192.168.142.1"
    1.83 +
    1.84 +ip_address_table={
    1.85 +	'gw1' 		: '192.168.142.1', 
    1.86 +	'gw2' 		: '192.168.142.4',
    1.87 +	'dns' 		: '192.168.142.2',
    1.88 +	'mail' 		: '192.168.142.3', 
    1.89 +	'ts' 		: '192.168.141.2', 
    1.90 +}
    1.91 +
    1.92 +debian_release="sid"
    1.93 +debian_mirror="http://10.0.35.1:9999/debian"
    1.94 +apt_get_install="less tcpdump libc6-xen openssh host"
    1.95 +
    1.96 +apt_get_install_table={
    1.97 +  "dns"   :"bind9 bind9utils",
    1.98 +  "mail"  :"sendmail sensible-mda",
    1.99 +  "ts"  :"xfce4 gdm vnc4server",
   1.100 +}
   1.101 +
   1.102 +mkfs_options=""