From 13f9dfb4dddeab2685de30ece0edc2f5d70d9e40 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 27 Aug 2023 15:42:33 +0200 Subject: [PATCH] add consul service registration --- templates/config.hcl.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/config.hcl.j2 b/templates/config.hcl.j2 index a199622..4a18105 100644 --- a/templates/config.hcl.j2 +++ b/templates/config.hcl.j2 @@ -13,3 +13,9 @@ api_addr = "http://{{ vault_listener_address}}:8200" cluster_addr = "http://{{ ansible_default_ipv4.address }}:8201" ui= true disable_mlock = true + +service_registration "consul" { + address = "127.0.0.1:8500" + service_address = "{{ ansible_default_ipv4.address }}" +} +