Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Infra: Ansible sync
[csit.git]
/
resources
/
tools
/
testbed-setup
/
ansible
/
roles
/
consul
/
templates
/
services.json.j2
diff --git a/resources/tools/testbed-setup/ansible/roles/consul/templates/services.json.j2
b/resources/tools/testbed-setup/ansible/roles/consul/templates/services.json.j2
new file mode 100644
(file)
index 0000000..
3245ba9
--- /dev/null
+++ b/
resources/tools/testbed-setup/ansible/roles/consul/templates/services.json.j2
@@ -0,0
+1,13
@@
+{
+ "services": [
+{% for item in consul_services %}
+ {
+ "name": "{{ item.name }}",
+ "port": {{ item.port }}
+ }
+{%- if not loop.last %},
+{% endif %}
+{% endfor %}
+
+ ]
+}
\ No newline at end of file