Group variables by logic / function.

This commit is contained in:
2021-03-14 13:24:13 +00:00
parent e5cb336b80
commit 21a6fcaffa
6 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -67,7 +67,7 @@ resource "kubernetes_service" "torrent_svc" {
port = 3000
target_port = 3000
}
load_balancer_ip = "${var.network_subnet}.${var.rtorrent_rpc_host}"
load_balancer_ip = "${var.network_subnet}.${var.net_hosts.torrent_rpc}"
selector = {
"app" : "torrent"
}
@@ -91,7 +91,7 @@ resource "kubernetes_persistent_volume" "torrent_shared_nfs" {
access_modes = ["ReadWriteMany"]
persistent_volume_source {
host_path {
path = var.nfs_torrent_path
path = var.nfs_storage.torrent
}
}
}
@@ -154,7 +154,7 @@ resource "kubernetes_deployment" "flood-torrent" {
name = "FLOOD_DISABLE_AUTH"
value = "true"
}
args = ["--rthost", "${var.network_subnet}.${var.rtorrent_rpc_host}",
args = ["--rthost", "${var.network_subnet}.${var.net_hosts.torrent_rpc}",
"--rtport", "5000", "-e", "HOME=/config", "--auth", "none", "-d", "/config/flood",
"--allowedpath", "/config",
"--allowedpath", "/data",