Commit 2abaf7e3 by Edward Zarecor

adding config with health check

parent 3fe7a545
......@@ -41,15 +41,16 @@ checksums:
services:
# needed for expected JSON format
- service:
name: "test_service"
tags:
- consul_managed
- test
port: 22
check:
script: "/bin/true"
interval: "10s"
test_service:
service:
name: "test_service"
tags:
- consul_managed
- test
port: 22
check:
script: "/bin/true"
interval: "10s"
#
......
......@@ -78,3 +78,17 @@
tags:
- install
- install:configuration
# POC
# TODO: role responsibility
- name: Create consul service scripts
template: >
src=edx/etc/consul/consul.d/service.conf.j2
dest={{consul_config_dir }}/consul.d/{{ item.key }}.conf
owner={{ supervisor_user }}
group={{ common_web_user }}
mode=0644
tags:
- install
- install:configuration
with_dict: "{{ services }}"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment