Fixed vigil
This commit is contained in:
parent
e725f54e85
commit
aed00f6017
5 changed files with 13 additions and 6 deletions
|
@ -22,12 +22,13 @@ lint:
|
||||||
- terrascan
|
- terrascan
|
||||||
- trivy
|
- trivy
|
||||||
enabled:
|
enabled:
|
||||||
|
- hadolint@2.12.0
|
||||||
- tflint@0.51.1
|
- tflint@0.51.1
|
||||||
- gitleaks@8.18.4
|
- gitleaks@8.18.4
|
||||||
- markdownlint@0.41.0
|
- markdownlint@0.41.0
|
||||||
- taplo@0.8.1
|
- taplo@0.8.1
|
||||||
- actionlint@1.7.1
|
- actionlint@1.7.1
|
||||||
- checkov@3.2.148
|
- checkov@3.2.156
|
||||||
- git-diff-check
|
- git-diff-check
|
||||||
- prettier@3.3.2
|
- prettier@3.3.2
|
||||||
- yamllint@1.35.1
|
- yamllint@1.35.1
|
||||||
|
@ -56,4 +57,4 @@ tools:
|
||||||
- tofu@1.7.2
|
- tofu@1.7.2
|
||||||
- trunk-toolbox@0.3.2
|
- trunk-toolbox@0.3.2
|
||||||
- tflint@0.51.1
|
- tflint@0.51.1
|
||||||
- terraform@1.1.4
|
- terraform@1.9.0
|
||||||
|
|
|
@ -19,9 +19,10 @@ variable "docker_networks" {
|
||||||
|
|
||||||
variable "monitored_services" {
|
variable "monitored_services" {
|
||||||
type = map(list(object({
|
type = map(list(object({
|
||||||
id = string
|
id = string
|
||||||
label = string
|
label = string
|
||||||
endpoints = list(string)
|
endpoints = list(string)
|
||||||
|
http_method = optional(string, null)
|
||||||
})))
|
})))
|
||||||
}
|
}
|
||||||
variable "page_title" {
|
variable "page_title" {
|
||||||
|
|
|
@ -8,6 +8,9 @@ id = "${service.id}"
|
||||||
label = "${service.label}"
|
label = "${service.label}"
|
||||||
mode = "poll"
|
mode = "poll"
|
||||||
reveal_replica_name = true
|
reveal_replica_name = true
|
||||||
|
%{ if service.http_method != null ~}
|
||||||
|
http_method = "${service.http_method}"
|
||||||
|
%{ endif ~}
|
||||||
replicas = [
|
replicas = [
|
||||||
%{ for endpoint in service.endpoints ~}
|
%{ for endpoint in service.endpoints ~}
|
||||||
"${endpoint}",
|
"${endpoint}",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
terraform {
|
terraform {
|
||||||
|
required_version = "~> 1.6"
|
||||||
required_providers {
|
required_providers {
|
||||||
docker = {
|
docker = {
|
||||||
source = "kreuzwerker/docker"
|
source = "kreuzwerker/docker"
|
||||||
|
|
3
vigil.tf
3
vigil.tf
|
@ -17,7 +17,7 @@ module "vigil" {
|
||||||
id = "longhorn"
|
id = "longhorn"
|
||||||
label = "Longhorn (longhorn.ti)"
|
label = "Longhorn (longhorn.ti)"
|
||||||
endpoints = [
|
endpoints = [
|
||||||
"icmp://longhorn.ti",
|
#"icmp://longhorn.ti", # ??? why?
|
||||||
"tcp://longhorn.ti:22",
|
"tcp://longhorn.ti:22",
|
||||||
#"https://longhorn.ti:8006", # cannot be used as the SSL cert is self-signed/invalid
|
#"https://longhorn.ti:8006", # cannot be used as the SSL cert is self-signed/invalid
|
||||||
]
|
]
|
||||||
|
@ -82,6 +82,7 @@ module "vigil" {
|
||||||
endpoints = [
|
endpoints = [
|
||||||
"https://code.techinc.nl/api/v1/version"
|
"https://code.techinc.nl/api/v1/version"
|
||||||
]
|
]
|
||||||
|
http_method = "GET"
|
||||||
}, {
|
}, {
|
||||||
id = "s3"
|
id = "s3"
|
||||||
label = "S3 (s3.california.ti)"
|
label = "S3 (s3.california.ti)"
|
||||||
|
|
Loading…
Reference in a new issue