Commit 2abaf7e3 by Edward Zarecor

adding config with health check

parent 3fe7a545
...@@ -41,7 +41,8 @@ checksums: ...@@ -41,7 +41,8 @@ checksums:
services: services:
# needed for expected JSON format # needed for expected JSON format
- service: test_service:
service:
name: "test_service" name: "test_service"
tags: tags:
- consul_managed - consul_managed
......
...@@ -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