anchor.diff:      auth_type PASS
       auth_pass <%="#{get_config('keepalived-password')}"%>
     }
  -  notify_stop "/usr/local/bin/vip_change"
  -  notify_fault "/usr/local/bin/vip_change"
  -  notify_backup "/usr/local/bin/vip_change"
  +  notify "/usr/local/bin/vip_change"
   }
  
positive.code:   rise 1
  }
  
  vrrp_instance <%= "BCPC_#{node[:bcpc][:region_name]}" %> {
    virtual_router_id <%="#{get_config('keepalived-router-id')}"%>
  
    # for electing MASTER, highest priority wins.
  
negative.code:   interface <%= "#{node[:bcpc][:management][:interface]}" %>
  
    virtual_ipaddress {
      <%="#{node[:bcpc][:management][:vip]}/#{(node['bcpc']['management']['cidr'].match /\d+\.\d+\.\d+\.\d+\/(\d+)/)[1].to_i}"%>
    }
    track_script {
      chk_haproxy
  