From 51e3e6aee8952cdb29450f511826c9824d607a3c Mon Sep 17 00:00:00 2001 From: tfe-release-bot Date: Fri, 13 Jan 2023 11:35:53 -0600 Subject: [PATCH] change os to a variable for standalone mounted disk --- examples/standalone-mounted/main.tf | 2 +- examples/standalone-mounted/terraform.tfvars.example | 1 + examples/standalone-mounted/variables.tf | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/standalone-mounted/main.tf b/examples/standalone-mounted/main.tf index dd11837c..fb0a4af3 100644 --- a/examples/standalone-mounted/main.tf +++ b/examples/standalone-mounted/main.tf @@ -51,7 +51,7 @@ module "standalone" { operational_mode = "disk" acm_certificate_arn = var.acm_certificate_arn domain_name = var.domain_name - distribution = "ubuntu" + distribution = var.distribution asg_tags = var.tags disk_path = "/opt/hashicorp/data" diff --git a/examples/standalone-mounted/terraform.tfvars.example b/examples/standalone-mounted/terraform.tfvars.example index 5a724e41..0b13e820 100644 --- a/examples/standalone-mounted/terraform.tfvars.example +++ b/examples/standalone-mounted/terraform.tfvars.example @@ -1,6 +1,7 @@ acm_certificate_arn = "arn:aws:acm:region::certificate/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" domain_name = "my.domain.com" license_file = "/files/license.rli" +distribution = "ubuntu" tags = { Owner = "My Name" Environment = "standalone-mounted" diff --git a/examples/standalone-mounted/variables.tf b/examples/standalone-mounted/variables.tf index 8dd1e00e..b1c47b1c 100644 --- a/examples/standalone-mounted/variables.tf +++ b/examples/standalone-mounted/variables.tf @@ -27,3 +27,9 @@ variable "tfe_subdomain" { type = string description = "Subdomain for TFE" } + +variable "distribution" { + type = string + default = "ubuntu" + description = "The OS distribution to use, either ubuntu or rhel." +}