aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/register_external_services.sh
blob: 8800f7143049a5bac607481555a37cf6d65ddc36 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/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.51",
  "NodeMeta": {
    "site": "scorpio",
    "cname_target": "scorpio.site.deuxfleurs.fr."
  },
  "Service": {
    "Service": "adrien-nginx",
    "Tags": [
      "tricot-https *.luxeylab.net",
      "tricot-https *.zinz.dev"
    ],
    "Address": "192.168.1.51",
    "Port": 443
  }
}
EOF

# Orsay (neptune): Alex's personnal stuff


curl -vv  -X PUT http://localhost:8500/v1/catalog/register -H "Content-Type: application/json" --data @- <<EOF
{
  "Datacenter": "prod",
  "Node": "pivert",
  "Address": "192.168.1.189",
  "NodeMeta": {
    "site": "neptune",
    "cname_target": "neptune.site.deuxfleurs.fr."
  },
  "Service": {
    "Service": "garage.isomorphis.me",
    "Tags": ["tricot garage.isomorphis.me"],
    "Address": "192.168.1.189",
    "Port": 3900
  }
}
EOF