xen-drbd

changeset 7:826230820396

*** empty log message ***
author eb
date Mon Feb 11 17:08:54 2008 +0200 (2008-02-11)
parents 7af6c8ecdf0c
children 3e4a29f88d50
files od.py
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/od.py	Mon Feb 11 17:08:54 2008 +0200
     1.3 @@ -0,0 +1,114 @@
     1.4 +
     1.5 +node1='debian'
     1.6 +node2='mirror'
     1.7 +i_am=node1
     1.8 +
     1.9 +ip_address = {
    1.10 +	node1: '10.0.1.19',
    1.11 +	node2: '10.0.1.20',
    1.12 +}
    1.13 +
    1.14 +node1_ip=ip_address[node1]
    1.15 +node2_ip=ip_address[node2]
    1.16 +
    1.17 +domains=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'proxy', 'pgw', 'ldap', 'mail', 'uucp', 'samba', 'dozor', 'vvidd', ] 
    1.18 +
    1.19 +domain_home = {
    1.20 +		node1 : ['dozor', 'dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'proxy', 'vpn', 'uucp', 'vvidd', 'apt'], 
    1.21 +		node2 : ['samba'], 
    1.22 +	}
    1.23 +
    1.24 +kernel = "/boot/vmlinuz-2.6.18-4-xen-686"
    1.25 +ramdisk = "/boot/initrd.img-2.6.18-4-xen-686-domU"
    1.26 +
    1.27 +mem_table={
    1.28 +	'dozor'	:256, 
    1.29 +	'dns'	:64, 
    1.30 +	'gw' 	:64, 
    1.31 +	'igw'	:128, 
    1.32 +	'pgw' 	:64, 
    1.33 +	'ldap'	:64, 
    1.34 +	'mail'	:256, 
    1.35 +	'proxy'	:256, 
    1.36 +	'samba'	:512, 
    1.37 +	'vpn'	:192,
    1.38 +	'uucp'	:128,
    1.39 +	'vvidd'	:64,
    1.40 +	'apt'   :128,
    1.41 +}
    1.42 +
    1.43 +vcpus_table={
    1.44 +	'dozor'	:4, 
    1.45 +	'dns'	:2, 
    1.46 +	'gw' 	:1, 
    1.47 +	'igw'	:1, 
    1.48 +	'pgw' 	:1, 
    1.49 +	'ldap'	:1, 
    1.50 +	'mail'	:4, 
    1.51 +	'proxy'	:4, 
    1.52 +	'samba'	:4, 
    1.53 +	'vpn'	:4,
    1.54 +	'uucp'	:4,
    1.55 +	'vvidd'	:4,
    1.56 +	'apt'   :2,
    1.57 +}
    1.58 +
    1.59 +lvm_vg_name="TURBO"
    1.60 +disk_table={
    1.61 +	'gw' 		: ['drbd1'], 
    1.62 +	'igw'		: ['drbd2'], 
    1.63 +	'dns'		: ['drbd3'], 
    1.64 +	'vpn'		: ['drbd4'],
    1.65 +	'apt'		: ['drbd5'],
    1.66 +	'proxy'		: ['drbd6'], 
    1.67 +	'pgw'		: ['drbd7'], 
    1.68 +	'ldap'		: ['drbd8'], 
    1.69 +	'mail'		: ['drbd10','drbd12:maildir'], 
    1.70 +	'uucp'		: ['drbd11'], 
    1.71 +	'samba'		: [ 
    1.72 +				'drbd18', 
    1.73 +				'drbd13:samba-home', 
    1.74 +				'drbd14:samba-nbumail', 
    1.75 +				'drbd15:samba-arm3', 
    1.76 +				'drbd16:samba-boxes', 
    1.77 +				'drbd17:samba-profiles' 
    1.78 +			  ],
    1.79 +	'dozor'		: ['drbd19'], 
    1.80 +	'vvidd'		: ['drbd20'], 
    1.81 +}
    1.82 +
    1.83 +bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
    1.84 +vlans=  ['tagged',        1,        256,        257,        3,        4,        501 ]
    1.85 +management_vlan=1
    1.86 +trunk='eth0'
    1.87 +management_ip=ip_address[i_am]
    1.88 +management_gw='10.0.1.253'
    1.89 +
    1.90 +vbridges_table={
    1.91 +	'dozor'		: ['xenbr3'], 
    1.92 +	'dns'		: ['xenbr3'], 
    1.93 +	'gw' 		: ['xenbr501', 'xenbr256', 'xenbr257'], 
    1.94 +	'igw'		: ['tagged0','xenbr3'], 
    1.95 +	'pgw'		: ['xenbr3','xenbr501'], 
    1.96 +	'ldap'		: ['xenbr3'], 
    1.97 +	'mail'		: ['xenbr3'], 
    1.98 +	'proxy'		: ['xenbr3'], 
    1.99 +	'samba'		: ['tagged0', 'xenbr3'],
   1.100 +	'vpn'		: ['xenbr3'],
   1.101 +	'vvidd'		: ['xenbr3'],
   1.102 +	'apt'		: ['xenbr3'],
   1.103 +	'uucp'		: ['xenbr3'],
   1.104 +}
   1.105 +
   1.106 +# FOR INSTALLATION ONLY
   1.107 +
   1.108 +ip_network="10.0.3"
   1.109 +domain_name="eb.co.ua"
   1.110 +ip_nameserver="10.0.3.4"
   1.111 +ip_gateway="10.0.3.3"
   1.112 +
   1.113 +debian_release="etch"
   1.114 +debian_mirror="http://debian.org.ua/debian"
   1.115 +apt_get_install="less tcpdump libpam-ldap libnss-ldap snmpd libc6-xen openssh-server"
   1.116 +
   1.117 +