aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/register_external_services.sh
blob: 9c00216ccf42352b66bf08714fe088ee3acec104 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash

# Bruxelles (bespin): git forge at git.deuxfleurs.fr

curl -vv  -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF
{
  "Datacenter": "prod",
  "Node": "gitea",
  "Address": "192.168.5.200",
  "NodeMeta": {
    "site": "bespin",
    "cname_target": "bespin.site.deuxfleurs.fr."
  },
  "Service": {
    "Service": "gitea",
    "Tags": ["tricot git.deuxfleurs.fr"],
    "Address": "192.168.5.200",
    "Port": 3001
  }
}
EOF

# Lille (scorpio): ADRN's personnal services under luxeylab.net

curl -vv  -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF
{
  "Datacenter": "prod",
  "Node": "spoutnik",
  "Address": "192.168.1.60",
  "NodeMeta": {
    "site": "scorpio",
    "cname_target": "scorpio.site.deuxfleurs.fr."
  },
  "Service": {
    "Service": "adrien-nginx",
    "Tags": ["tricot-https *.luxeylab.net"],
    "Address": "192.168.1.60",
    "Port": 443
  }
}
EOF