Skip to content

Commit

Permalink
Add new properties to scheduler config
Browse files Browse the repository at this point in the history
  • Loading branch information
JayGreeeen committed Dec 17, 2024
1 parent 87d3629 commit 5c0e3c4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions config-templates.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
4 changes: 3 additions & 1 deletion files/beekeeper-scheduler-apiary-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 5c0e3c4

Please sign in to comment.