Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added http_get check #73

Open
billjamzz opened this issue Jun 17, 2015 · 3 comments
Open

added http_get check #73

billjamzz opened this issue Jun 17, 2015 · 3 comments

Comments

@billjamzz
Copy link

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
Copy link
Author

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

@arioch
Copy link
Contributor

arioch commented Jun 17, 2015

Maybe you could whip up a pull request? 👍
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.

@saz
Copy link
Sponsor Contributor

saz commented Sep 25, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants