aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/register_external_services.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-06-02 15:40:43 +0200
committerAlex Auvolat <alex@adnab.me>2023-06-02 15:40:43 +0200
commit14b59ba4b019799dc15d7a92faa8e89f1d7bf6f3 (patch)
treef63cef553bc6b4919e0ff23c84589a71f56d6d22 /cluster/prod/register_external_services.sh
parentc31de0e94fed68cb25dbf15fc5a95008351b3e19 (diff)
downloadnixcfg-14b59ba4b019799dc15d7a92faa8e89f1d7bf6f3.tar.gz
nixcfg-14b59ba4b019799dc15d7a92faa8e89f1d7bf6f3.zip
màj config gitea
Diffstat (limited to 'cluster/prod/register_external_services.sh')
-rwxr-xr-xcluster/prod/register_external_services.sh18
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
{