From 4abdf2883e754e946bf2fd1e6ca0f1239717842d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 14 Feb 2020 22:41:28 +0100 Subject: Ajout du mecanisme d'invitation de Guichet --- nomad/bottin2.hcl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'nomad') diff --git a/nomad/bottin2.hcl b/nomad/bottin2.hcl index c883851..0e8c030 100644 --- a/nomad/bottin2.hcl +++ b/nomad/bottin2.hcl @@ -12,7 +12,7 @@ job "directory2" { task "bottin" { driver = "docker" config { - image = "lxpz/bottin_amd64:12" + image = "lxpz/bottin_amd64:13" readonly_rootfs = true port_map { ldap_port = 1389 @@ -61,7 +61,7 @@ job "directory2" { task "guichet" { driver = "docker" config { - image = "lxpz/guichet_amd64:5" + image = "lxpz/guichet_amd64:8" readonly_rootfs = true port_map { web_port = 9991 @@ -71,8 +71,13 @@ job "directory2" { ] } + artifact { + source = "http://127.0.0.1:8500/v1/kv/configuration/directory/guichet/config.json.tpl?raw" + destination = "secrets/config.json.tpl" + mode = "file" + } template { - data = "{{ key \"configuration/directory/guichet/config.json\" }}" + source = "secrets/config.json.tpl" destination = "secrets/config.json" } -- cgit v1.2.3