root@54: root@54: node1='lab8' root@54: node2='linux10' root@54: root@54: from socket import gethostname; i_am=gethostname() root@54: if i_am != node1 and i_am != node2: root@54: raise ValueError, "My hostname (%s) should be equal to node1 (%s) or node2 (%s)" % (i_am, node1, node2) root@54: root@54: ip_address = { root@54: node1: '192.168.15.8', root@54: node2: '192.168.15.10', root@54: } root@54: root@54: node1_ip=ip_address[node1] root@54: node2_ip=ip_address[node2] root@54: root@54: domains= [ 'gw1', 'gw2', 'dns', 'mail', 'ts' ] root@54: domain_types= [ 'linux', 'linux', 'linux', 'linux', 'linux' ] root@54: root@54: domain_home= { root@54: node1 : ['gw1', 'gw2', 'dns'], root@54: node2 : ['mail', 'ts'], root@54: } root@54: root@54: kernel = "/boot/vmlinuz-2.6.18-6-xen-686" root@54: ramdisk = "/boot/initrd.img-2.6.18-6-xen-686" root@54: root@54: mem_table={ root@54: 'gw1' :256, root@54: 'gw2' :256, root@54: 'dns' :256, root@54: 'mail' :256, root@54: 'ts' :256, root@54: } root@54: root@54: vcpus_table={ root@54: 'gw1' :1, root@54: 'gw2' :1, root@54: 'dns' :1, root@54: 'mail' :1, root@54: 'ts' :1, root@54: } root@54: root@54: lvm_pv_names="/dev/null" root@54: lvm_vg_name="VG0" root@54: lvm_lv_drbd_meta_size="2G" root@54: lvm_lv_drbd_meta_name="meta" root@54: root@54: disk_table={ root@54: 'gw1' : ['drbd1:gw1:2G'], root@54: 'gw2' : ['drbd2:gw2:2G'], root@54: 'dns' : ['drbd3:dns:2G'], root@54: 'mail' : ['drbd4:mail:2G'], root@54: 'ts' : ['drbd5:ts:5G'], root@54: } root@54: root@54: bridges=['tagged0', 'br100', 'br1', 'br2', 'br3' ] root@54: vlans= ['tagged', 100, 141, 142, 143 ] root@54: management_interface='br100' root@54: trunk='eth0' root@54: management_ip=ip_address[i_am] root@54: management_gw='192.168.15.254' root@54: management_netmask='255.255.255.0' root@54: root@54: vbridges_table={ root@54: 'gw1' : ['br2','br3'], root@54: 'gw2' : ['br2','br1'], root@54: 'dns' : ['br2'], root@54: 'mail' : ['br2'], root@54: 'ts' : ['br1'], root@54: } root@54: root@54: # FOR INSTALLATION ONLY root@54: root@54: ip_network="192.168.142" root@54: ip_netmask="255.255.255.0" root@54: domain_name="net4.unix.nt" root@54: ip_nameserver="192.168.142.2" root@54: ip_gateway="192.168.142.1" root@54: root@54: ip_address_table={ root@54: 'gw1' : '192.168.142.1', root@54: 'gw2' : '192.168.142.4', root@54: 'dns' : '192.168.142.2', root@54: 'mail' : '192.168.142.3', root@54: 'ts' : '192.168.141.2', root@54: } root@54: root@54: debian_release="sid" root@54: debian_mirror="http://10.0.35.1:9999/debian" root@54: apt_get_install="less tcpdump libc6-xen openssh host" root@54: root@54: apt_get_install_table={ root@54: "dns" :"bind9 bind9utils", root@54: "mail" :"sendmail sensible-mda", root@54: "ts" :"xfce4 gdm vnc4server", root@54: } root@54: root@54: mkfs_options=""