aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-05-09 15:12:03 +0200
committerAlex Auvolat <alex@adnab.me>2023-05-09 15:12:03 +0200
commit258d27c566c78dfc714079bf921270a71fdc9535 (patch)
treebabea467da3219bcdeb74028fdf9ca84ce576ca8 /cluster/prod
parent24cf7ddd91e4b726d2ed276787947e104e26b53b (diff)
downloadnixcfg-258d27c566c78dfc714079bf921270a71fdc9535.tar.gz
nixcfg-258d27c566c78dfc714079bf921270a71fdc9535.zip
deploy tricot at bespin, register gitea (not accessed yet)
Diffstat (limited to 'cluster/prod')
-rw-r--r--cluster/prod/app/core/deploy/tricot.hcl2
-rwxr-xr-xcluster/prod/register_external_services.sh41
-rw-r--r--cluster/prod/register_personal_services.sh17
3 files changed, 42 insertions, 18 deletions
diff --git a/cluster/prod/app/core/deploy/tricot.hcl b/cluster/prod/app/core/deploy/tricot.hcl
index 7c955d2..7c3bada 100644
--- a/cluster/prod/app/core/deploy/tricot.hcl
+++ b/cluster/prod/app/core/deploy/tricot.hcl
@@ -1,5 +1,5 @@
job "core:tricot" {
- datacenters = ["orion", "neptune", "scorpio"]
+ datacenters = ["orion", "neptune", "scorpio", "bespin"]
type = "system"
priority = 90
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
diff --git a/cluster/prod/register_personal_services.sh b/cluster/prod/register_personal_services.sh
deleted file mode 100644
index 6ea8dbe..0000000
--- a/cluster/prod/register_personal_services.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env bash
-
-
-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": { "somekey": "bidon" },
- "Service": {
- "Service": "adrien-nginx",
- "Tags": ["tricot-https *.luxeylab.net"],
- "Address": "192.168.1.60",
- "Port": 443
- }
-}
-EOF