Cookbooks
keepalived
documentation
Keepalived Smtp Check

keepalived_smtp_check

back to resource list (opens in a new tab)

The keepalived_smtp_check resource can be used to configure a SMTP_CHECK health checker.

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

Actions

  • :create
  • :delete

Properties

NameTypeDefaultDescriptionAllowed Values
helo_nameStringnilOptional string to use for the SMTP HELO request
delay_before_retryIntegernilOptional delay before retry after failure
connect_ipStringnilOptional IP address to connect to
connect_portIntegernilOptional port to connect to
bind_toStringnilOptional address to use to originate the connection
bind_portIntegernilOptional source port to originate the connection from
connect_timeoutIntegernilOptional connection timeout in seconds
fwmarkIntegernilOptional fwmark to mark all outgoing checker packets with
warmupIntegernilOptional random delay to start the initial check for maximum N seconds
config_directoryString/etc/keepalived/checks.ddirectory for the config file to reside in
config_fileString::File.join(config_directory, "keepalived_smtp_check__#{name.to_s.gsub(/\s+/, '-')}__.conf")full path to the config file
cookbookStringkeepalivedWhich cookbook to look in for the template
sourceStringsmtp_check.conf.erbName of the template to render

Examples

keepalived_smtp_check 'smtp01' do
  helo_name 'sous-chefs.org'
  delay_before_retry 5
  connect_port 25
  connect_timeout 10
  notifies :restart, 'service[keepalived]', :delayed
end