diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-14 22:41:28 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-14 22:42:11 +0100 |
commit | 4abdf2883e754e946bf2fd1e6ca0f1239717842d (patch) | |
tree | 5c7f2aaf40b6c6de05cf63b7aac43dc40e301d23 /nomad | |
parent | 69e5c595d7818ea03388ede421d0c903c592ef49 (diff) | |
download | infrastructure-4abdf2883e754e946bf2fd1e6ca0f1239717842d.tar.gz infrastructure-4abdf2883e754e946bf2fd1e6ca0f1239717842d.zip |
Ajout du mecanisme d'invitation de Guichet
Diffstat (limited to 'nomad')
-rw-r--r-- | nomad/bottin2.hcl | 11 |
1 files changed, 8 insertions, 3 deletions
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" } |