first commit
This commit is contained in:
17
environments/core/main.tf
Normal file
17
environments/core/main.tf
Normal file
@@ -0,0 +1,17 @@
|
||||
// Core infrastructure components
|
||||
// These are the foundational services that other services depend on
|
||||
|
||||
locals {
|
||||
module_dir = "../../modules"
|
||||
}
|
||||
|
||||
// Core monitoring and maintenance service
|
||||
module "watchtower" {
|
||||
source = "${local.module_dir}/20-services-apps/watchtower"
|
||||
|
||||
timezone = var.timezone
|
||||
poll_interval = 86400
|
||||
cleanup = true
|
||||
enable_notifications = var.watchtower_enable_notifications
|
||||
notification_url = var.watchtower_notification_url
|
||||
}
|
||||
19
environments/core/variables.tf
Normal file
19
environments/core/variables.tf
Normal file
@@ -0,0 +1,19 @@
|
||||
// Generic
|
||||
variable "timezone" {
|
||||
description = "Timezone for the system"
|
||||
type = string
|
||||
}
|
||||
|
||||
// Watchtower
|
||||
variable "watchtower_enable_notifications" {
|
||||
description = "Enable Watchtower update notifications"
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "watchtower_notification_url" {
|
||||
description = "Webhook URL for Watchtower notifications (Discord, Slack, etc.)"
|
||||
type = string
|
||||
sensitive = true
|
||||
default = ""
|
||||
}
|
||||
Reference in New Issue
Block a user