aboutsummaryrefslogtreecommitdiff
path: root/cluster
diff options
context:
space:
mode:
authorAdrien <adrien@luxeylab.net>2023-03-15 18:55:09 +0100
committerAdrien <adrien@luxeylab.net>2023-03-15 18:55:09 +0100
commite4065dade8c63f66722ece3e08d1dc2f6fcdab8f (patch)
treebdb6aaef2167ccd809e1311ee5c866ff220a3eec /cluster
parentf7be968531a61bc9c08c03cda416784dc70ae546 (diff)
downloadnixcfg-e4065dade8c63f66722ece3e08d1dc2f6fcdab8f.tar.gz
nixcfg-e4065dade8c63f66722ece3e08d1dc2f6fcdab8f.zip
added Consul Registration of personal services (for Adrien's personal stuff)
Diffstat (limited to 'cluster')
-rw-r--r--cluster/prod/register_personal_services.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/cluster/prod/register_personal_services.sh b/cluster/prod/register_personal_services.sh
new file mode 100644
index 0000000..6ea8dbe
--- /dev/null
+++ b/cluster/prod/register_personal_services.sh
@@ -0,0 +1,17 @@
+#!/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