xen-drbd

annotate od.py @ 41:a2e536ffabf7

bootloader arg in dump
author igor@manas.xt.vpn
date Mon Sep 22 15:31:57 2008 +0300 (2008-09-22)
parents 5e499179b5ed
children 562d6e064e6f
rev   line source
eb@7 1
igor@31 2 node1='manas'
eb@7 3 node2='mirror'
igor@23 4 #i_am=node1
igor@23 5
igor@23 6 from socket import gethostname; i_am=gethostname()
igor@23 7 if i_am != node1 and i_am != node2:
igor@23 8 raise ValueError, "My hostname (%s) should be equal to node1 (%s) or node2 (%s)" % (i_am, node1, node2)
eb@7 9
eb@7 10 ip_address = {
igor@8 11 node1: '10.0.5.220',
igor@8 12 node2: '10.0.5.221',
eb@7 13 }
eb@7 14
eb@7 15 node1_ip=ip_address[node1]
eb@7 16 node2_ip=ip_address[node2]
eb@7 17
igor@31 18 domains= [ 'gw', 'igw', 'dns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'samba', 'test']
igor@31 19 domain_types= [ 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'linux', 'hvm' ]
eb@7 20
eb@7 21 domain_home = {
igor@8 22 node1 : ['dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', 'apt'],
igor@8 23 node2 : ['samba'],
igor@8 24 }
eb@7 25
igor@18 26 kernel = "/boot/vmlinuz-2.6.18-5-xen-686"
igor@18 27 ramdisk = "/boot/initrd.img-2.6.18-5-xen-686"
eb@7 28
eb@7 29 mem_table={
igor@8 30 'dns' :64,
igor@8 31 'gw' :64,
igor@8 32 'igw' :128,
igor@8 33 'pgw' :64,
igor@8 34 'ldap' :64,
igor@8 35 'mail' :256,
igor@8 36 'samba' :512,
igor@8 37 'vpn' :192,
igor@8 38 'uucp' :128,
igor@8 39 'apt' :128,
igor@31 40 'test' :128,
eb@7 41 }
eb@7 42
eb@7 43 vcpus_table={
igor@8 44 'dns' :1,
igor@8 45 'gw' :1,
igor@8 46 'igw' :1,
igor@8 47 'pgw' :1,
igor@8 48 'ldap' :1,
igor@8 49 'mail' :4,
igor@8 50 'samba' :4,
igor@8 51 'vpn' :4,
igor@8 52 'uucp' :4,
igor@8 53 'apt' :2,
igor@31 54 'test' :2,
eb@7 55 }
eb@7 56
eb@7 57 lvm_vg_name="TURBO"
igor@9 58 lvm_pv_names="/dev/md2"
igor@9 59 lvm_lv_drbd_meta_name="meta"
igor@9 60 lvm_lv_drbd_meta_size="5G"
igor@9 61 mkfs_options="-m1"
igor@9 62
eb@7 63 disk_table={
igor@8 64 'gw' : ['drbd1:gw:2G'],
igor@8 65 'igw' : ['drbd2:igw:2G'],
igor@36 66 'dns' : ['drbd3=sda1:dns:2G'],
igor@8 67 'vpn' : ['drbd4:vpn:2G'],
igor@8 68 'apt' : ['drbd5:apt:10G'],
igor@8 69 'pgw' : ['drbd6:pgw:2G'],
igor@8 70 'ldap' : ['drbd7:ldap:2G'],
igor@8 71 'mail' : ['drbd8:mail:2G','drbd9:maildir:100G'],
igor@8 72 'uucp' : ['drbd11:uucp:3G'],
igor@8 73 'samba' : [
igor@8 74 'drbd12:samba:3G',
igor@8 75 'drbd13:samba-home:100G',
igor@8 76 'drbd14:samba-nbumail:100G',
igor@8 77 'drbd17:samba-profiles:100G'
igor@8 78 ],
igor@31 79 'test' : ['drbd18:test:3G'],
eb@7 80 }
eb@7 81
eb@7 82 bridges=['tagged0', 'xenbr1', 'xenbr256', 'xenbr257', 'xenbr3', 'xenbr4', 'xenbr501']
eb@7 83 vlans= ['tagged', 1, 256, 257, 3, 4, 501 ]
eb@7 84 management_vlan=1
eb@7 85 trunk='eth0'
eb@7 86 management_ip=ip_address[i_am]
igor@8 87 management_gw='10.0.5.253'
igor@22 88 management_netmask='255.255.255.0'
eb@7 89
eb@7 90 vbridges_table={
igor@8 91 'dns' : ['xenbr3'],
igor@8 92 'gw' : ['xenbr501', 'xenbr256', 'xenbr257'],
igor@8 93 'igw' : ['tagged0','xenbr3'],
igor@8 94 'pgw' : ['xenbr3','xenbr501'],
igor@8 95 'ldap' : ['xenbr3'],
igor@8 96 'mail' : ['xenbr3'],
igor@8 97 'samba' : ['tagged0', 'xenbr3'],
igor@8 98 'vpn' : ['xenbr3'],
igor@8 99 'apt' : ['xenbr3'],
igor@8 100 'uucp' : ['xenbr3'],
igor@31 101 'test' : ['xenbr3'],
eb@7 102 }
eb@7 103
eb@7 104 # FOR INSTALLATION ONLY
eb@7 105
igor@8 106 ip_network="10.4.3"
igor@8 107 ip_netmask="255.255.255.224"
igor@8 108 domain_name="od.eb.co.ua"
igor@8 109 ip_nameserver="10.4.3.4"
igor@9 110 ip_gateway="10.4.3.6"
eb@7 111
igor@8 112 ip_address_table={
igor@8 113 "dns" :"10.4.3.4",
igor@8 114 "gw" :"10.4.3.254",
igor@8 115 "igw" :"10.4.3.3",
igor@8 116 "pgw" :"10.4.3.6",
igor@8 117 "ldap" :"10.4.3.11",
igor@8 118 "mail" :"10.4.3.9",
igor@8 119 "samba" :"10.4.3.1",
igor@8 120 "vpn" :"10.4.3.5",
igor@8 121 "apt" :"10.4.3.7",
igor@8 122 "uucp" :"10.4.3.16",
igor@8 123 "jabber":"10.4.3.12",
eb@7 124
igor@8 125 }
eb@7 126
igor@8 127 debian_release="lenny"
igor@17 128 debian_mirror="http://apt.eb.co.ua:9999/debian"
igor@8 129 apt_get_install="less tcpdump dnsutils vim ntp screen snmpd libc6-xen openssh-server"
igor@8 130
igor@8 131