keepalived_vrrp_sync_group resource can be used to configure VRRP Sync Groups (groups of resources that fail over together).
More information available at https://www.keepalived.org/manpage.html (opens in a new tab)
|Script to run for notifications when transitioning to state of master|
|Script to run for notifications when transitioning to state of backup|
|Script to run for notifications when transitioning to state of fault|
|Script to run for notifications when any transition of state happens|
|Send email notification during state transition|
|(Required) name of the vrrp_instance|
|directory for the config file to reside in|
|full path to the config file|
|Which cookbook to look in for the template|
|Name of the template to render|
keepalived_vrrp_sync_group 'myGroup' do group %w(internal_systems external_clients) notify_master '/path/to_master.sh' notify_backup '/path/to_backup.sh' notify_fault '/path/fault.sh' notify '/path/notify.sh' notifies :restart, 'service[keepalived]', :delayed end
Was this helpful?