diff --git a/bootstrap/daemon/config.tf b/bootstrap/daemon/config.tf index 1f73fc0..444ba6f 100644 --- a/bootstrap/daemon/config.tf +++ b/bootstrap/daemon/config.tf @@ -8,6 +8,7 @@ resource "kubernetes_config_map_v1" "fabric_daemon_config" { "daemon.toml" = "${templatefile( "${path.module}/daemon.toml.tftpl", { + db_path = "/var/cache/${var.consumer_cache_name}.db", broker_urls = var.broker_urls consumer_cache_name = var.consumer_cache_name consumer_monitor_name = var.consumer_monitor_name diff --git a/bootstrap/daemon/daemon.toml.tftpl b/bootstrap/daemon/daemon.toml.tftpl index a8070e8..80e1347 100644 --- a/bootstrap/daemon/daemon.toml.tftpl +++ b/bootstrap/daemon/daemon.toml.tftpl @@ -1,8 +1,7 @@ +db_path="${db_path}" topic = "${topic}" - cluster_id = "${cluster_id}" delay_sec = ${prometheus_delay_sec} - mode = "${mode}" [prometheus] diff --git a/bootstrap/daemon/sts.tf b/bootstrap/daemon/sts.tf index 3110d2b..1c76279 100644 --- a/bootstrap/daemon/sts.tf +++ b/bootstrap/daemon/sts.tf @@ -62,7 +62,7 @@ resource "kubernetes_stateful_set_v1" "daemon" { volume_mount { name = "config" - mount_path = "/fabric/config" + mount_path = "/fabric" } resources {