# HG changeset patch # User igor # Date 1202752617 -7200 # Node ID 3e4a29f88d50d468a680a1787fe813dbb8b3c7c1 # Parent 8262308203960e2ad8564b358884f8ae352872f4 Odessa virtual host config diff -r 826230820396 -r 3e4a29f88d50 od.py --- a/od.py Mon Feb 11 17:08:54 2008 +0200 +++ b/od.py Mon Feb 11 19:56:57 2008 +0200 @@ -4,77 +4,66 @@ i_am=node1 ip_address = { - node1: '10.0.1.19', - node2: '10.0.1.20', + node1: '10.0.5.220', + node2: '10.0.5.221', } node1_ip=ip_address[node1] node2_ip=ip_address[node2] -domains=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'proxy', 'pgw', 'ldap', 'mail', 'uucp', 'samba', 'dozor', 'vvidd', ] +domains=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'samba', ] domain_home = { - node1 : ['dozor', 'dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'proxy', 'vpn', 'uucp', 'vvidd', 'apt'], - node2 : ['samba'], - } + node1 : ['dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', '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, + 'dns' :64, + 'gw' :64, + 'igw' :128, + 'pgw' :64, + 'ldap' :64, + 'mail' :256, + 'samba' :512, + 'vpn' :192, + 'uucp' :128, + '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, + 'dns' :1, + 'gw' :1, + 'igw' :1, + 'pgw' :1, + 'ldap' :1, + 'mail' :4, + 'samba' :4, + 'vpn' :4, + 'uucp' :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'], + 'gw' : ['drbd1:gw:2G'], + 'igw' : ['drbd2:igw:2G'], + 'dns' : ['drbd3:dns:2G'], + 'vpn' : ['drbd4:vpn:2G'], + 'apt' : ['drbd5:apt:10G'], + 'pgw' : ['drbd6:pgw:2G'], + 'ldap' : ['drbd7:ldap:2G'], + 'mail' : ['drbd8:mail:2G','drbd9:maildir:100G'], + 'uucp' : ['drbd11:uucp:3G'], + 'samba' : [ + 'drbd12:samba:3G', + 'drbd13:samba-home:100G', + 'drbd14:samba-nbumail:100G', + 'drbd17:samba-profiles:100G' + ], } bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501'] @@ -82,33 +71,46 @@ management_vlan=1 trunk='eth0' management_ip=ip_address[i_am] -management_gw='10.0.1.253' +management_gw='10.0.5.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'], + 'dns' : ['xenbr3'], + 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'], + 'igw' : ['tagged0','xenbr3'], + 'pgw' : ['xenbr3','xenbr501'], + 'ldap' : ['xenbr3'], + 'mail' : ['xenbr3'], + 'samba' : ['tagged0', 'xenbr3'], + 'vpn' : ['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_network="10.4.3" +ip_netmask="255.255.255.224" +domain_name="od.eb.co.ua" +ip_nameserver="10.4.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" +ip_address_table={ + "dns" :"10.4.3.4", + "gw" :"10.4.3.254", + "igw" :"10.4.3.3", + "pgw" :"10.4.3.6", + "ldap" :"10.4.3.11", + "mail" :"10.4.3.9", + "samba" :"10.4.3.1", + "vpn" :"10.4.3.5", + "apt" :"10.4.3.7", + "uucp" :"10.4.3.16", + "jabber":"10.4.3.12", +} +debian_release="lenny" +debian_mirror="http://apt.eb.co.ua:9999/" +apt_get_install="less tcpdump dnsutils vim ntp screen snmpd libc6-xen openssh-server" + +