Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 536 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 536 Bytes

Consul Service

Create the configuration file for a Consul watch definition.

Usage

In Role

- name: Create Consul watch definition
  include_role: name=infra-role-consul-watch
  vars:
    consul_watch_name: 'app-abc'
    consul_watches:
      - type: 'services'
        args:
          - "/usr/bin/sudo"
          - "-u"
          - "root"
          - "-g"
          - "root"
          - "/var/lib/python_script.py"

The following variables are also available:

  • service_id
  • handler