Skip to content

Instantly share code, notes, and snippets.

@farahfa
Created November 8, 2017 05:37
Show Gist options
  • Save farahfa/f8c140bc70c630d8b0653ed16434bfbd to your computer and use it in GitHub Desktop.
Save farahfa/f8c140bc70c630d8b0653ed16434bfbd to your computer and use it in GitHub Desktop.
- name: register nginx service with curl check
consul:
host: 10.96.2.123
service_name: nginx
service_port: 80
script: "curl http://localhost > /dev/null 2>&1"
interval: 60s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment