1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
| listen MYSQL_PORT_3306 bind 192.168.220.248:3306 mode tcp balance roundrobin server mysql 192.168.50.102:3306 weight 1 check port 3306 inter 3s fall 3 rise 5
listen OPENSTACK_RABBIT bind 192.168.220.248:5672 mode tcp balance roundrobin server rabbie 192.168.50.102:5672 weight 1 check port 5672 inter 3s fall 3 rise 5
listen OPENSTACK_RABBIT_15672 bind 192.168.220.248:15672 mode tcp balance roundrobin server rabbie 192.168.50.102:15672 weight 1 check port 15672 inter 3s fall 3 rise 5 listen OPENSTACK_RABBIT_25672 bind 192.168.220.248:25672 mode tcp balance roundrobin server rabbie 192.168.50.102:25672 weight 1 check port 25672 inter 3s fall 3 rise 5 listen OPENSTACK_memcache bind 192.168.220.248:11211 mode tcp balance roundrobin
server mem 192.168.50.102:11211 weight 1 check port 11211 inter 3s fall 3 rise 5 listen openstack_keystone_5000 bind 192.168.220.248:5000 mode tcp balance roundrobin server keystone5000 192.168.50.202:5000 weight 1 check port 5000 inter 3s fall 3 rise 5
listen openstack_keystone_35357 bind 192.168.220.248:35357 mode tcp balance roundrobin server keystone1 192.168.50.202:35357 weight 1 check port 35357 inter 3s fall 3 rise 5
listen openstack_glance_api bind 192.168.220.248:9292 mode tcp balance roundrobin server api1 192.168.50.202:9292 weight 1 check port 9292 inter 3s fall 3 rise 5
listen openstack_glance bind 192.168.220.248:9191 mode tcp balance roundrobin server glance1 192.168.50.202:9191 weight 1 check port 9191 inter 3s fall 3 rise 5
listen openstack_nova_8774 bind 192.168.220.248:8774 mode tcp balance roundrobin server glance1 192.168.50.202:8774 weight 1 check port 8774 inter 3s fall 3 rise 5
listen openstack_nova_8775 bind 192.168.220.248:8775 mode tcp balance roundrobin server glance1 192.168.50.202:8775 weight 1 check port 8775 inter 3s fall 3 rise 5
listen openstack_nova_8778 bind 192.168.220.248:8778 mode tcp balance roundrobin server glance1 192.168.50.202:8778 weight 1 check port 8778 inter 3s fall 3 rise 5
listen openstack_vnc bind 192.168.220.248:6080 mode tcp balance roundrobin server glance1 192.168.50.202:6080 weight 1 check port 6080 inter 3s fall 3 rise 5
listen openstack_nova_9696 bind 192.168.220.248:9696 mode tcp balance roundrobin server glance1 192.168.50.202:9696 weight 1 check port 9696 inter 3s fall 3 rise 5
listen openstack_dashboard bind 192.168.220.248:80 mode tcp balance roundrobin server glance1 192.168.50.202:80 weight 1 check port 80 inter 3s fall 3 rise 5 root@ubuntu:~ net.ipv4.ip_nonlocal_bind = 1 net.ipv4.ip_forward = 1 cp /usr/share/doc/keepalived/samples/keepalived.conf.sample /etc/keepalived/keepalived.conf global_defs { notification_email { acassen } notification_email_from Alexandre.Cassen@firewall.loc smtp_server 192.168.200.1 smtp_connect_timeout 30 vrrp_iptables router_id LVS_DEVEL }
vrrp_instance VI_1 { interface eth0 virtual_router_id 50 nopreempt
priority 100 advert_int 1 virtual_ipaddress { 192.168.220.248 dev eth0 label eth0:0 } }
|