diff options
author | Alex Auvolat <alex@adnab.me> | 2023-06-02 15:40:43 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-06-02 15:40:43 +0200 |
commit | 14b59ba4b019799dc15d7a92faa8e89f1d7bf6f3 (patch) | |
tree | f63cef553bc6b4919e0ff23c84589a71f56d6d22 /cluster/prod/register_external_services.sh | |
parent | c31de0e94fed68cb25dbf15fc5a95008351b3e19 (diff) | |
download | nixcfg-14b59ba4b019799dc15d7a92faa8e89f1d7bf6f3.tar.gz nixcfg-14b59ba4b019799dc15d7a92faa8e89f1d7bf6f3.zip |
màj config gitea
Diffstat (limited to 'cluster/prod/register_external_services.sh')
-rwxr-xr-x | cluster/prod/register_external_services.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cluster/prod/register_external_services.sh b/cluster/prod/register_external_services.sh index 3b6a35e..7db4e7a 100755 --- a/cluster/prod/register_external_services.sh +++ b/cluster/prod/register_external_services.sh @@ -60,6 +60,24 @@ curl -vv -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: app } EOF +curl -vv -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF +{ + "Datacenter": "prod", + "Node": "lindy", + "Address": "192.168.1.184", + "NodeMeta": { + "site": "neptune", + "cname_target": "neptune.site.deuxfleurs.fr." + }, + "Service": { + "Service": "lx-apimtest", + "Tags": ["tricot apimtest.adnab.me"], + "Address": "192.168.1.184", + "Port": 8920 + } +} +EOF + curl -vv -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF { |