keepalived_static_routes resource can be used to manage configuration within the
static_routes section of keepalived.conf.
More information available at https://www.keepalived.org/manpage.html (opens in a new tab)
|(Required) A list of IP Address declarations|
|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_static_routes 'static_routes' do routes [ '192.168.2.0/24 via 192.168.1.100 dev eth0', '192.168.3.0/24 via 192.168.1.100 dev eth0', ] notifies :restart, 'service[keepalived]', :delayed end
Was this helpful?