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