Skip to content

Commit

Permalink
add disk_path to docker_compose (#319)
Browse files Browse the repository at this point in the history
* add disk_path to docker_compose
  • Loading branch information
anniehedgpeth authored Nov 15, 2023
1 parent 96f8777 commit 53dc1ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ module "docker_compose_config" {

tfe_license = var.hc_license

disk_path = var.operational_mode == "disk" ? var.disk_path : null
hostname = local.fqdn
http_port = var.http_port
https_port = var.https_port
Expand Down
2 changes: 2 additions & 0 deletions tests/standalone-vault/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module "standalone_vault" {
source = "../../"

acm_certificate_arn = var.acm_certificate_arn
disk_path = "/opt/hashicorp/data"
domain_name = var.domain_name
friendly_name_prefix = local.friendly_name_prefix
tfe_license_secret_id = try(module.secrets[0].tfe_license_secret_id, var.tfe_license_secret_id)
Expand All @@ -60,6 +61,7 @@ module "standalone_vault" {
kms_key_arn = module.kms.key
load_balancing_scheme = local.load_balancing_scheme
node_count = 1
operational_mode = "disk"
redis_encryption_at_rest = false
redis_encryption_in_transit = false
redis_use_password_auth = false
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ variable "custom_image_tag" {

variable "disk_path" {
default = null
description = "The pathname of the directory in which Terraform Enterprise will store data on the compute instances."
description = "The pathname of the directory in which Terraform Enterprise will store data on the compute instances. Required if var.is_replicated_deployment is false and var.operational_mode is 'disk'."
type = string
}

Expand Down

0 comments on commit 53dc1ce

Please sign in to comment.