diff --git a/step3/infrastructure/traefik.tf b/step3/infrastructure/traefik.tf index e45ec01..b56864e 100644 --- a/step3/infrastructure/traefik.tf +++ b/step3/infrastructure/traefik.tf @@ -11,7 +11,7 @@ resource "helm_release" "traefik" { set { name = "service.spec.loadBalancerIP" - value = "${var.network_subnet}.234" + value = "${var.network_subnet}.${var.traefik_host}" } values = [ diff --git a/step3/infrastructure/variables.tf b/step3/infrastructure/variables.tf index 10f521d..5359def 100644 --- a/step3/infrastructure/variables.tf +++ b/step3/infrastructure/variables.tf @@ -5,6 +5,7 @@ variable "nfs_torrent_path" {} variable "nfs_adguard_path" {} variable "adguard_host" {} variable "adguard_catchall_host" {} +variable "traefik_host" {} variable "traefik_api_key" {} variable "github_user" {} variable "github_pat" {} \ No newline at end of file diff --git a/step3/variables.tfvars b/step3/variables.tfvars index 50b096c..5641ed1 100644 --- a/step3/variables.tfvars +++ b/step3/variables.tfvars @@ -3,6 +3,7 @@ network_subnet = "192.168.50" rtorrent_rpc_host = "245" adguard_host = "240" adguard_catchall_host = "249" +traefik_host = "234" nfs_general_path = "/media/nfs" nfs_torrent_path = "/mnt/drobo-storage/docker-volumes/torrent"