Fixed vigil
Some checks failed
Trunk Cache / Trunk Cache (push) Failing after 2s
Trunk Check / Trunk Check Runner (push) Failing after 1s
Trunk Upgrade / Upgrade Trunk (push) Failing after 1s

This commit is contained in:
Greyscale 2024-06-28 18:15:00 +02:00
parent e725f54e85
commit aed00f6017
5 changed files with 13 additions and 6 deletions

View file

@ -22,12 +22,13 @@ lint:
- terrascan
- trivy
enabled:
- hadolint@2.12.0
- tflint@0.51.1
- gitleaks@8.18.4
- markdownlint@0.41.0
- taplo@0.8.1
- actionlint@1.7.1
- checkov@3.2.148
- checkov@3.2.156
- git-diff-check
- prettier@3.3.2
- yamllint@1.35.1
@ -56,4 +57,4 @@ tools:
- tofu@1.7.2
- trunk-toolbox@0.3.2
- tflint@0.51.1
- terraform@1.1.4
- terraform@1.9.0

View file

@ -22,6 +22,7 @@ variable "monitored_services" {
id = string
label = string
endpoints = list(string)
http_method = optional(string, null)
})))
}
variable "page_title" {

View file

@ -8,6 +8,9 @@ id = "${service.id}"
label = "${service.label}"
mode = "poll"
reveal_replica_name = true
%{ if service.http_method != null ~}
http_method = "${service.http_method}"
%{ endif ~}
replicas = [
%{ for endpoint in service.endpoints ~}
"${endpoint}",

View file

@ -1,4 +1,5 @@
terraform {
required_version = "~> 1.6"
required_providers {
docker = {
source = "kreuzwerker/docker"

View file

@ -17,7 +17,7 @@ module "vigil" {
id = "longhorn"
label = "Longhorn (longhorn.ti)"
endpoints = [
"icmp://longhorn.ti",
#"icmp://longhorn.ti", # ??? why?
"tcp://longhorn.ti:22",
#"https://longhorn.ti:8006", # cannot be used as the SSL cert is self-signed/invalid
]
@ -82,6 +82,7 @@ module "vigil" {
endpoints = [
"https://code.techinc.nl/api/v1/version"
]
http_method = "GET"
}, {
id = "s3"
label = "S3 (s3.california.ti)"