cookbook 'keepalived', '= 5.0.1'
keepalived
(40) Versions
5.0.1
-
Follow19
Installs and configures keepalived
cookbook 'keepalived', '= 5.0.1', :supermarket
knife supermarket install keepalived
knife supermarket download keepalived
keepalived Cookbook
Installs keepalived and generates the configuration files, using resource-driven configuration.
Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
Requirements
Platforms
- Debian/Ubuntu
- RHEL/CentOS/Scientific/Amazon/Oracle
Chef
- Chef 13+
Recommended Background Reading
man:keepalived(8)
man:keepalived.conf(5)
- Keepalived Documentation
Resources
- keepalived_global_defs
- keepalived_http_get
- keepalived_misc_check
- keepalived_real_server
- keepalived_smtp_check
- keepalived_ssl_get
- keepalived_static_ipaddress
- keepalived_static_routes
- keepalived_tcp_check
- keepalived_virtual_server_group
- keepalived_virtual_server
- keepalived_vrrp_instance
- keepalived_vrrp_script
- keepalived_vrrp_sync_group
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
keepalived Cookbook CHANGELOG
This file is used to list changes made in each version of the keepalived cookbook.
5.0.1
- Changed
value_for_platform_family
to be wrapped in lazy to fix issue with Chef 14
5.0.0
- Removed all attributes
- Removed all recipes
- Added resource called
keepalived_install
- Changed service behaviour, this must now be declared directly as a resource.
- All other resources need to notify the service to restart when changes
notifies :restart, 'service[keepalived]', :delayed
- Resolved issue with check names prefixing all check file names
{name}
section with aport-
in them, this was incorrect and has now been removed.
4.0.0
- Added testing for newer operating systems
- amazonlinux-2
- debian 10
- ubuntu 18.04
- Removed testing for older operating systems
- amazonlinux
- centos 6
- debian 8
- ubuntu 14.04
- ubuntu 16.04
- Removed unnecessary allowed_actions from the resource
- Migrated to github actions for CI testing
- Migrated global_defs from HWRP to a Custom Resource
- Removed property
config_name
- Removed property
content
, this is now build up from the supplied properties - Removed property
path
- Removed property
exists
- Removed property
enable_snmp_keepalived
, no longer in keepalived man page - Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, 'global_defs.conf')
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted toglobal_defs.conf.erb
- Added property
extra_options
- Removed property
- Migrated static_ipaddress from HWRP to a Custom Resource
- Removed property
config_name
- Removed property
content
, this is now build up from the supplied properties - Removed property
path
- Removed property
exists
- Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, 'static_ipaddress.conf')
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tostatic_ipaddress.conf.erb
- Removed property
- Migrated static_routes from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, 'static_routes.conf')
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tostatic_routes.conf.erb
- Removed property
- Migrated vrrp_sync_group from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, 'keepalived_vrrp_sync_group__#{name}__.conf')
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tovrrp_sync_group.conf.erb
- Removed property
- Migrated vrrp_script from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, '00_keepalived_vrrp_script__#{name}__.conf')
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tovrrp_script.conf.erb
- Removed property
- Migrated real_server from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Added property
config_directory
, defaulted to:/etc/keepalived/servers.d
- Added property
config_file
, defaulted to:::File.join(config_directory, 'keepalived_real_server__#{ipaddress}-#{port}__.conf')
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted toreal_server.conf.erb
- Removed property
- Migrated tcp_check from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Added property
config_directory
, defaulted to:/etc/keepalived/checks.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_tcp_check__port-#{name.to_s.gsub(/\s+/, '-')}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted totcp_check.conf.erb
- Changed property
bindto
this is nowbind_to
- Removed property
- Migrated http_get from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Removed property
nb_get_retry
, this is no longer in the manpage so it not supported - Added property
config_directory
, defaulted to:/etc/keepalived/checks.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_http_get__port-#{name.to_s.gsub(/\s+/, '-')}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tohttp_get.conf.erb
- Changed property
bindto
this is nowbind_to
- Changed property
url
to no longer be required, it has a default already
- Removed property
- Migrated ssl_get from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Removed property
nb_get_retry
, this is no longer in the manpage so it not supported - Added property
config_directory
, defaulted to:/etc/keepalived/checks.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_ssl_get__port-#{name.to_s.gsub(/\s+/, '-')}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tossl_get.conf.erb
- Changed property
bindto
this is nowbind_to
- Changed property
url
to no longer be required, it has a default already
- Removed property
- Migrated smtp_check from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Removed property
host
- Added property
config_directory
, defaulted to:/etc/keepalived/checks.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_smtp_check__port-#{name.to_s.gsub(/\s+/, '-')}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tosmtp_check.conf.erb
- Changed property
bindto
this is nowbind_to
- Removed property
- Migrated misc_check from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Added property
config_directory
, defaulted to:/etc/keepalived/checks.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_misc_check__port-#{name.to_s.gsub(/\s+/, '-')}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tomisc_check.conf.erb
- Removed property
- Migrated virtual_server_group from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_virtual_server_group__#{name}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tovirtual_server_group.conf.erb
- Removed property
- Migrated virtual_server from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Removed property
lb_algo
, this property is not documented in the manpage - Removed property
lb_kind
, this property is not documented in the manpage - Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_virtual_server__#{name.to_s.gsub(/\s+/, '-')}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tovirtual_server.conf.erb
- Removed property
-
Migrated vrrp_instance from HWRP to a Custom Resource
- Removed property
config_name
, propertyconfig_file
now will be the full name - Removed property
content
, this is now build up from the supplied properties - Removed property
exists
- Removed property
path
- Removed property
lvs_sync_daemon_interface
, it is not in the manpage - Removed property
debug
, manpage states not implemented yet - Added property
config_directory
, defaulted to:/etc/keepalived/conf.d
- Added property
config_file
, defaulted to:::File.join(config_directory, "keepalived_vrrp_instance__#{name}__.conf"
- Added property
cookbook
, defaulted to:keepalived
- Added property
source
, defaulted tovrrp_instance.conf.erb
- Changed property
strict_mode
to a boolean, this was previously a String
- Removed property
-
Items of note
- Any calls to resources that look like this:
resources(keepalived_http_get: 'health_check_url').path
need to be migrated to use theconfig_file
instead,resources(keepalived_http_get: 'health_check_url').config_file
- Any calls to resources that look like this:
3.1.1 (2018-01-10)
- Update README for vrrp_instance property name change
- Allow authentication hash to use strings for keys
- Update Test Kitchen platforms
- fix unicast_peer var type in readme
- Changes needed to converge on CentOS7 and Debian9
3.1.0 (2017-03-20)
- Replace keepalived_vrrp_instance 'state' property with boolean 'master' property to fix Chef 13 compat
- Use the standard Apache-2.0 license string in the metadata
- Switch from Rake to delivery local mode for testing
3.0.2 (2017-02-13)
- add user option for vrrp_script blocks
- update test suite
3.0.1 (2016-09-21)
- fix chef_version in metadata
3.0.0 (2016-09-16)
- Testing updates
- Require Chef 12.1
v2.1.1 (2016-07-13)
- pass through sensitive attribute to underlying file resource
v2.1.0 (2016-06-15)
Bugfixes
- fix chefspec matchers
- bump order of virtual_router_id in vrrp_instance config
Enhancements
- extended platform testing
v2.0.0 (2016-04-25)
Breaking Changes
- attribute-driven configuration is no longer supported
- remove net.ipv4.ip_nonlocal_bind sysctl management
Enhancements
- separate recipe concerns from single recipe to install, configure, service
- overhaul cookbook to use resources instead of attributes
- add daemon cli args management
v1.3.0 (2015-10-21)
- Added RHEL based distros as supported platforms
- Added requirements section to the readme to clarify what distros are supported and the requirement of Chef 11+
- Updated .gitignore file
- Added Test Kitchen config
- Added Chef standard Rubocop config
- Added Travis CI testing
- Added Berksfile
- Updated Gemfile with the latest development dependencies
- Updated contributing and testing docs
- Added maintainers.md and maintainers.toml files
- Added Travis and cookbook version badges to the readme
- Updated Opscode -> Chef Software
- Added a Rakefile for simplified testing
- Added a Chefignore file
- Resolved Rubocop warnings
- Added source_url and issues_url to the metadata
- Added basic convergence Chefspec test
v1.2.0 (2014-02-25)
- [COOK-4299] Avoid setting attributes without precedence
v1.1.0
New Feature
-
COOK-3017 - Add support for
vrrp_sync_groups
v1.0.4
Improvement
- [COOK-2919]: Status option not available
v1.0.2
- [COOK-1965] - fixes template subscribes and readme typos
v1.0.0
- [COOK-1656] - Make keepalived configurable. Add some tests.
v0.7.1
- Initial public release.
Collaborator Number Metric
5.0.1 passed this metric
Contributing File Metric
5.0.1 passed this metric
Foodcritic Metric
5.0.1 passed this metric
No Binaries Metric
5.0.1 passed this metric
Testing File Metric
5.0.1 passed this metric
Version Tag Metric
5.0.1 passed this metric
5.0.1 passed this metric
5.0.1 passed this metric
Foodcritic Metric
5.0.1 passed this metric
No Binaries Metric
5.0.1 passed this metric
Testing File Metric
5.0.1 passed this metric
Version Tag Metric
5.0.1 passed this metric
5.0.1 passed this metric
5.0.1 passed this metric
Testing File Metric
5.0.1 passed this metric
Version Tag Metric
5.0.1 passed this metric
5.0.1 passed this metric
5.0.1 passed this metric