puppet-keepalived icon indicating copy to clipboard operation
puppet-keepalived copied to clipboard

added http_get check

Open billjamzz opened this issue 10 years ago • 3 comments

I did a very simple mod to your module to add http_get health check. Not a complete implementation, but enough for what I needed at this time.

virtual_server.pp: added "$http_get = undef," after tcp_check. lvs_virtual_server.erb: after TCP_CHECK section added:

  <%- if @http_get -%>
HTTP_GET  {
  url {
       path <%= http_get['url'] %>
       status_code <%= http_get['status_code'] %>   
      }
}
  <%- end -%>

billjamzz avatar Jun 17 '15 19:06 billjamzz

usage: http_get => { url => '/test/test.jsp', status_code => '200'},

billjamzz avatar Jun 17 '15 19:06 billjamzz

Maybe you could whip up a pull request? :+1: I could add it myself but I prefer to have the credits go to the right person.

If it's your first time this should get you up to speed.

arioch avatar Jun 17 '15 21:06 arioch

This is working in a generic way using options. I don't think it makes sense to add separate parameters.

saz avatar Sep 25 '19 19:09 saz