Cookbooks
keepalived
documentation
Keepalived Static Ipaddress

keepalived_static_ipaddress

back to resource list (opens in a new tab)

The keepalived_static_ipaddress resource can be used to manage configuration within the static_ipaddress section of keepalived.conf.

More information available at https://www.keepalived.org/manpage.html (opens in a new tab)

Actions

  • :create
  • :delete

Properties

NameTypeDefaultDescriptionAllowed Values
addressesArraynil(Required) A list of IP Address declarations
config_directoryString/etc/keepalived/conf.ddirectory for the config file to reside in
config_fileString::File.join(config_directory, 'static_ipaddress.conf')full path to the config file
cookbookStringkeepalivedWhich cookbook to look in for the template
sourceStringstatic_ipaddress.conf.erbName of the template to render

Examples

keepalived_static_ipaddress 'static_ipaddress' do
  addresses [
    '192.168.1.98/24 dev eth0 scope global',
    '192.168.1.99/24 dev eth0 scope global',
  ]
  notifies :restart, 'service[keepalived]', :delayed
end