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

[2016.3] Merge forward from 2015.8 to 2016.3 #35522

Merged
merged 17 commits into from
Aug 17, 2016

Conversation

rallytime
Copy link
Contributor

Conflicts:

  • doc/conf.py
  • tests/runtests.py

Ch3LL and others added 17 commits August 8, 2016 17:01
service checks.

The function "agent_service_register" in the consul.py module failed
to register service health checks and did not follow the consul.io
documentation for doing so. This patch fixes the code to successfully
register service checks, check for dict keys case-insensitive (because
the absense of keys with the correct case would fail silently), and
more closely follow the documentation at consul.io, see:

https://www.consul.io/docs/agent/http/agent.html#agent_service_register

Here is an example salt state for registering a service and a couple
of health checks, similar to the example in the consul.io documents:

example-service-registration:
  module.run:
    - name: consul.agent_service_register
    - consul_url: "http://localhost:8500"
    - kwargs:
        id: redis1
        name: "redis"
        tags: [master, v1]
        address: "127.0.0.1"
        port: 8000
        EnableTagOverride: false
        check:
          script: "/usr/local/bin/check_redis.py"
          http: "http://localhost:5000/health"
          interval: "15s"

NOTE: the saltstack documentation needs to be updated. It wasn't
correct anyway.
Fixes spacing in requirements files
Conflicts:
  - doc/conf.py
  - tests/runtests.py
@rallytime rallytime merged commit 8b77086 into saltstack:2016.3 Aug 17, 2016
@rallytime rallytime deleted the merge-2016.3 branch August 17, 2016 18:07
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

Successfully merging this pull request may close these issues.

3 participants