# HG changeset patch # User eb # Date 1202742534 -7200 # Node ID 8262308203960e2ad8564b358884f8ae352872f4 # Parent 7af6c8ecdf0ca9ff059288e6d36f560c9af4d86b *** empty log message *** diff -r 7af6c8ecdf0c -r 826230820396 od.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/od.py Mon Feb 11 17:08:54 2008 +0200 @@ -0,0 +1,114 @@ + +node1='debian' +node2='mirror' +i_am=node1 + +ip_address = { + node1: '10.0.1.19', + node2: '10.0.1.20', +} + +node1_ip=ip_address[node1] +node2_ip=ip_address[node2] + +domains=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'proxy', 'pgw', 'ldap', 'mail', 'uucp', 'samba', 'dozor', 'vvidd', ] + +domain_home = { + node1 : ['dozor', 'dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'proxy', 'vpn', 'uucp', 'vvidd', 'apt'], + node2 : ['samba'], + } + +kernel = "/boot/vmlinuz-2.6.18-4-xen-686" +ramdisk = "/boot/initrd.img-2.6.18-4-xen-686-domU" + +mem_table={ + 'dozor' :256, + 'dns' :64, + 'gw' :64, + 'igw' :128, + 'pgw' :64, + 'ldap' :64, + 'mail' :256, + 'proxy' :256, + 'samba' :512, + 'vpn' :192, + 'uucp' :128, + 'vvidd' :64, + 'apt' :128, +} + +vcpus_table={ + 'dozor' :4, + 'dns' :2, + 'gw' :1, + 'igw' :1, + 'pgw' :1, + 'ldap' :1, + 'mail' :4, + 'proxy' :4, + 'samba' :4, + 'vpn' :4, + 'uucp' :4, + 'vvidd' :4, + 'apt' :2, +} + +lvm_vg_name="TURBO" +disk_table={ + 'gw' : ['drbd1'], + 'igw' : ['drbd2'], + 'dns' : ['drbd3'], + 'vpn' : ['drbd4'], + 'apt' : ['drbd5'], + 'proxy' : ['drbd6'], + 'pgw' : ['drbd7'], + 'ldap' : ['drbd8'], + 'mail' : ['drbd10','drbd12:maildir'], + 'uucp' : ['drbd11'], + 'samba' : [ + 'drbd18', + 'drbd13:samba-home', + 'drbd14:samba-nbumail', + 'drbd15:samba-arm3', + 'drbd16:samba-boxes', + 'drbd17:samba-profiles' + ], + 'dozor' : ['drbd19'], + 'vvidd' : ['drbd20'], +} + +bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501'] +vlans= ['tagged', 1, 256, 257, 3, 4, 501 ] +management_vlan=1 +trunk='eth0' +management_ip=ip_address[i_am] +management_gw='10.0.1.253' + +vbridges_table={ + 'dozor' : ['xenbr3'], + 'dns' : ['xenbr3'], + 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'], + 'igw' : ['tagged0','xenbr3'], + 'pgw' : ['xenbr3','xenbr501'], + 'ldap' : ['xenbr3'], + 'mail' : ['xenbr3'], + 'proxy' : ['xenbr3'], + 'samba' : ['tagged0', 'xenbr3'], + 'vpn' : ['xenbr3'], + 'vvidd' : ['xenbr3'], + 'apt' : ['xenbr3'], + 'uucp' : ['xenbr3'], +} + +# FOR INSTALLATION ONLY + +ip_network="10.0.3" +domain_name="eb.co.ua" +ip_nameserver="10.0.3.4" +ip_gateway="10.0.3.3" + +debian_release="etch" +debian_mirror="http://debian.org.ua/debian" +apt_get_install="less tcpdump libpam-ldap libnss-ldap snmpd libc6-xen openssh-server" + +