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 - 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

View file

@ -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" {

View file

@ -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}",

View file

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

View file

@ -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)"