forked from Deuxfleurs/nixcfg
deploy tricot at bespin, register gitea (not accessed yet)
This commit is contained in:
parent
24cf7ddd91
commit
258d27c566
3 changed files with 42 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
||||||
job "core:tricot" {
|
job "core:tricot" {
|
||||||
datacenters = ["orion", "neptune", "scorpio"]
|
datacenters = ["orion", "neptune", "scorpio", "bespin"]
|
||||||
type = "system"
|
type = "system"
|
||||||
priority = 90
|
priority = 90
|
||||||
|
|
||||||
|
|
41
cluster/prod/register_external_services.sh
Executable file
41
cluster/prod/register_external_services.sh
Executable file
|
@ -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
|
|
@ -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
|
|
Loading…
Reference in a new issue