Commit 2abaf7e3 by Edward Zarecor

adding config with health check

parent 3fe7a545
...@@ -41,15 +41,16 @@ checksums: ...@@ -41,15 +41,16 @@ checksums:
services: services:
# needed for expected JSON format # needed for expected JSON format
- service: test_service:
name: "test_service" service:
tags: name: "test_service"
- consul_managed tags:
- test - consul_managed
port: 22 - test
check: port: 22
script: "/bin/true" check:
interval: "10s" script: "/bin/true"
interval: "10s"
# #
......
...@@ -78,3 +78,17 @@ ...@@ -78,3 +78,17 @@
tags: tags:
- install - install
- install:configuration - 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