diff options
author | Justin chi <chigang@huawei.com> | 2017-03-16 12:32:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-16 12:32:11 +0000 |
commit | ae1d61f7f99880d70317914de43262f37332aa82 (patch) | |
tree | 64c5bba7e4790283c344469c0ea1e4cc8fae3899 /deploy/adapters/ansible/roles/onos_cluster/templates/keepalived.conf | |
parent | e1bcc84781b51e8078387d071c24eeead2700cb9 (diff) | |
parent | 8da5888adfc919b20807f0783e1ae841fac4244e (diff) |
Merge "onos 1.8 upgradation for danube"
Diffstat (limited to 'deploy/adapters/ansible/roles/onos_cluster/templates/keepalived.conf')
-rwxr-xr-x | deploy/adapters/ansible/roles/onos_cluster/templates/keepalived.conf | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/onos_cluster/templates/keepalived.conf b/deploy/adapters/ansible/roles/onos_cluster/templates/keepalived.conf new file mode 100755 index 00000000..4ccf1c43 --- /dev/null +++ b/deploy/adapters/ansible/roles/onos_cluster/templates/keepalived.conf @@ -0,0 +1,47 @@ +global_defs { + router_id {{ inventory_hostname }} +} + +vrrp_sync_group VG1 { + group { + internal_vip + public_vip + } +} + +vrrp_instance internal_vip { + interface {{ internal_vip.interface }} + virtual_router_id {{ vrouter_id_internal }} + state BACKUP + nopreempt + advert_int 1 + priority {{ 50 + (host_index[inventory_hostname] * 50) }} + + authentication { + auth_type PASS + auth_pass 1234 + } + + virtual_ipaddress { + {{ internal_vip.ip }}/{{ internal_vip.netmask }} dev {{ internal_vip.interface }} + } +} + +vrrp_instance public_vip { + interface br-ex + virtual_router_id {{ vrouter_id_public }} + state BACKUP + nopreempt + advert_int 1 + priority {{ 50 + (host_index[inventory_hostname] * 50) }} + + authentication { + auth_type PASS + auth_pass 4321 + } + + virtual_ipaddress { + {{ network_cfg.public_vip.ip }}/{{ network_cfg.public_vip.netmask }} dev br-ex + } + +} |