Skip to content

Commit

Permalink
added rhel support to keepalived config
Browse files Browse the repository at this point in the history
  • Loading branch information
damiancurry committed Jan 23, 2018
1 parent c42713c commit f320b11
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion nginx-cookbook/templates/default/keepalived.conf.erb
Expand Up @@ -15,7 +15,12 @@ the root directory of this source tree.
%>

vrrp_script chk_nginx_service {
<% if node['platform_family'] == 'debian' %>
script "/usr/lib/keepalived/nginx-ha-check"
<% end %>
<% if node['platform_family'] == 'rhel' %>
script "/usr/libexec/keepalived/nginx-ha-check"
<% end %>
interval 3
weight 50
}
Expand Down Expand Up @@ -50,5 +55,10 @@ vrrp_instance VI_1 {
track_script {
chk_nginx_service
}
notify "/usr/lib/keepalived/nginx-ha-notify"
<% if node['platform_family'] == 'debian' %>
notify "/usr/lib/keepalived/nginx-ha-notify"
<% end %>
<% if node['platform_family'] == 'rhel' %>
notify "/usr/libexec/keepalived/nginx-ha-notify"
<% end %>
}

0 comments on commit f320b11

Please sign in to comment.