Cookbooks
keepalived
documentation
Keepalived Install

keepalived_service

back to resource list (opens in a new tab)

The keepalived_service resource can be used to manage the keepalived service

Actions

  • :create

Properties

NameTypeDefaultDescriptionAllowed Values
package_nameStringkeepalivedThe name of the service
root_pathString/etc/keepalivedThe root of the configuration
config_pathString#{root_path}/conf.dPath to keep other config on disk
server_pathString#{root_path}/servers.dPath to keep all servers on disk
health_pathString#{root_path}/checks.dPath to keep all checks on disk
defaults_pathStringSee Resource.Where the defaults should be stored.

Examples

After the install you should setup the service as well to be automatically started.

keepalived_install 'keepalived' do
end
 
service 'keepalived' do
  action [:enable, :start]
end