17 lines
396 B
Bash
17 lines
396 B
Bash
#!/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
|