aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/register_external_services.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/prod/register_external_services.sh')
-rwxr-xr-xcluster/prod/register_external_services.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/cluster/prod/register_external_services.sh b/cluster/prod/register_external_services.sh
new file mode 100755
index 0000000..9c00216
--- /dev/null
+++ b/cluster/prod/register_external_services.sh
@@ -0,0 +1,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