Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Oct 14, 2024
2 parents ca1df07 + 34d366f commit f32e250
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-keepalived CHANGELOG
===============

## 0.2.0

- Miguel Negron
- [9c39609] notify webui only for webui service

## 0.1.1

- Miguel Negrón
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
maintainer_email 'dvanhoucke@redborder.com'
license 'All rights reserved'
description 'Installs/Configures cookbook-keepalived'
version '0.1.1'
version '0.2.0'
5 changes: 3 additions & 2 deletions resources/templates/default/keepalived.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ vrrp_instance vi_<%= ip %> {
virtual_ipaddress {
<%= ip %>/32
}
<% if services.select{ |x| x["service"]=="webui" } %>
<% webui_services = services.select{ |x| x['service']=='webui' } %>
<% if webui_services.count > 0 && webui_services.first['ip'] == ip %>
notify_master "/usr/lib/redborder/bin/rb_keepalived_master_notify_webui.sh"
notify_backup "/usr/lib/redborder/bin/rb_keepalived_backup_notify_webui.sh"
<% end %>
Expand Down Expand Up @@ -209,4 +210,4 @@ virtual_server <%= external_vip[balance["service"]]["ip"] %> <%= balance[:port]
}
<% end %>
<% end %>
<% end %>
<% end %>

0 comments on commit f32e250

Please sign in to comment.