diff --git a/CHANGELOG.md b/CHANGELOG.md index 9331e5d..2b9c1ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [TBD] +### Added +- Added `dry-run-enabled` and `metastore-uri` properties to `beekeeper-scheduler-apiary-config.json`. + ## [5.2.0] - 2024-11-25 ### Added - Added new variable `beekeeper_db_external_hostname` to support external DB host. diff --git a/config-templates.tf b/config-templates.tf index 3c093ea..a1d3df1 100644 --- a/config-templates.tf +++ b/config-templates.tf @@ -23,6 +23,8 @@ data "template_file" "beekeeper_scheduler_apiary_config" { db_name = var.beekeeper_db_name db_username = var.db_username queue = aws_sqs_queue.beekeeper.id + dry_run_enabled = var.scheduler_dry_run_enabled + metastore_uri = var.metastore_uri graphite_config = var.graphite_enabled == "false" ? "" : data.template_file.beekeeper_graphite_config.rendered } } diff --git a/files/beekeeper-scheduler-apiary-config.json b/files/beekeeper-scheduler-apiary-config.json index 3e4be24..321133f 100644 --- a/files/beekeeper-scheduler-apiary-config.json +++ b/files/beekeeper-scheduler-apiary-config.json @@ -4,6 +4,8 @@ "username": "${db_username}" }, "properties": { - "apiary.queue-url": "${queue}" + "apiary.queue-url": "${queue}", + "dry-run-enabled": "${dry_run_enabled}", + "metastore-uri": "${metastore_uri}" }${graphite_config} } diff --git a/variables.tf b/variables.tf index fbba54a..7b15ece 100644 --- a/variables.tf +++ b/variables.tf @@ -282,6 +282,12 @@ variable "metadata_cleanup_dry_run_enabled" { type = string } +variable "scheduler_dry_run_enabled" { + description = "Enable Metadata Cleanup to perform dry runs of deletions only." + default = "false" + type = string +} + # Monitoring variable "graphite_enabled" {