This commit systematically updates all Terraform configurations, including resources, variables, and labels, to use the more generic `app` designation instead of `swarm`. This improves consistency and decouples the infrastructure naming from a specific container orchestration technology like Docker Swarm.
19 lines
581 B
HCL
19 lines
581 B
HCL
resource "hcloud_floating_ip" "app" {
|
|
name = "${local.name_prefix}-app-fip"
|
|
type = "ipv4"
|
|
home_location = var.location
|
|
description = "Floating IP for ${local.environment} app entry point"
|
|
|
|
labels = {
|
|
environment = local.environment
|
|
role = "app"
|
|
}
|
|
}
|
|
|
|
# Floating IP, iklim-app-01'e atanir (primary node).
|
|
# Failover gerekirse manuel veya otomasyon ile baska app node'una tasinabilir.
|
|
resource "hcloud_floating_ip_assignment" "app" {
|
|
floating_ip_id = hcloud_floating_ip.app.id
|
|
server_id = hcloud_server.app["iklim-app-01"].id
|
|
}
|