xen-drbd

diff eb.py @ 3:3ce02620180c

+ eb.py
author igor
date Fri Sep 28 16:08:02 2007 +0300 (2007-09-28)
parents
children 0b0a886abd08
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/eb.py	Fri Sep 28 16:08:02 2007 +0300
     1.3 @@ -0,0 +1,98 @@
     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 +lvm_vg_name="TURBO"
    1.44 +disk_table={
    1.45 +	'gw' 		: ['drbd1'], 
    1.46 +	'igw'		: ['drbd2'], 
    1.47 +	'dns'		: ['drbd3'], 
    1.48 +	'vpn'		: ['drbd4'],
    1.49 +	'apt'		: ['drbd5'],
    1.50 +	'proxy'		: ['drbd6'], 
    1.51 +	'pgw'		: ['drbd7'], 
    1.52 +	'ldap'		: ['drbd8'], 
    1.53 +	'mail'		: ['drbd10','drbd12:maildir'], 
    1.54 +	'uucp'		: ['drbd11'], 
    1.55 +	'samba'		: [ 
    1.56 +				'drbd18', 
    1.57 +				'drbd13:samba-home', 
    1.58 +				'drbd14:samba-nbumail', 
    1.59 +				'drbd15:samba-arm3', 
    1.60 +				'drbd16:samba-boxes', 
    1.61 +				'drbd17:samba-profiles' 
    1.62 +			  ],
    1.63 +	'dozor'		: ['drbd19'], 
    1.64 +	'vvidd'		: ['drbd20'], 
    1.65 +}
    1.66 +
    1.67 +bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
    1.68 +vlans=  ['tagged',        1,        256,        257,        3,        4,        501 ]
    1.69 +management_vlan=1
    1.70 +trunk='eth0'
    1.71 +management_ip=ip_address[i_am]
    1.72 +management_gw='10.0.1.253'
    1.73 +
    1.74 +vbridges_table={
    1.75 +	'dozor'		: ['xenbr3'], 
    1.76 +	'dns'		: ['xenbr3'], 
    1.77 +	'gw' 		: ['xenbr501', 'xenbr256', 'xenbr257'], 
    1.78 +	'igw'		: ['tagged0','xenbr3'], 
    1.79 +	'pgw'		: ['xenbr3','xenbr501'], 
    1.80 +	'ldap'		: ['xenbr3'], 
    1.81 +	'mail'		: ['xenbr3'], 
    1.82 +	'proxy'		: ['xenbr3'], 
    1.83 +	'samba'		: ['tagged0', 'xenbr3'],
    1.84 +	'vpn'		: ['xenbr3'],
    1.85 +	'vvidd'		: ['xenbr3'],
    1.86 +	'apt'		: ['xenbr3'],
    1.87 +	'uucp'		: ['xenbr3'],
    1.88 +}
    1.89 +
    1.90 +# FOR INSTALLATION ONLY
    1.91 +
    1.92 +ip_network="10.0.3"
    1.93 +domain_name="eb.co.ua"
    1.94 +ip_nameserver="10.0.3.4"
    1.95 +ip_gateway="10.0.3.3"
    1.96 +
    1.97 +debian_release="etch"
    1.98 +debian_mirror="http://debian.org.ua/debian"
    1.99 +apt_get_install="less tcpdump libpam-ldap libnss-ldap snmpd libc6-xen openssh-server"
   1.100 +
   1.101 +