Skip to content

Commit

Permalink
add legacy workspace tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
anniehedgpeth committed Sep 20, 2023
1 parent 5377d16 commit 9b7ba18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/handler-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
pull_request_repo_name: ${{ github.event.client_payload.github.payload.repository.full_name }}
pull_request_ref: ${{ github.event.client_payload.pull_request.head.sha }}
pull_request_comment_id: ${{ github.event.client_payload.github.payload.comment.id }}
TFC_token_secret_name: STANDALONE_EXTERNAL_TFC_TOKEN
TFC_token_secret_name: STANDALONE_EXTERNAL_LEGACY_TFC_TOKEN
TFC_workspace_substitution_pattern: 's/terraform {/terraform {\n\
backend "remote" {\n\
organization = "terraform-enterprise-modules-test"\n\
Expand All @@ -146,7 +146,7 @@ jobs:
pull_request_repo_name: ${{ github.event.client_payload.github.payload.repository.full_name }}
pull_request_ref: ${{ github.event.client_payload.pull_request.head.sha }}
pull_request_comment_id: ${{ github.event.client_payload.github.payload.comment.id }}
TFC_token_secret_name: STANDALONE_MOUNTED_DISK_TFC_TOKEN
TFC_token_secret_name: STANDALONE_MOUNTED_DISK_LEGACY_TFC_TOKEN
TFC_workspace_substitution_pattern: 's/terraform {/terraform {\n\
backend "remote" {\n\
organization = "terraform-enterprise-modules-test"\n\
Expand All @@ -170,7 +170,7 @@ jobs:
pull_request_repo_name: ${{ github.event.client_payload.github.payload.repository.full_name }}
pull_request_ref: ${{ github.event.client_payload.pull_request.head.sha }}
pull_request_comment_id: ${{ github.event.client_payload.github.payload.comment.id }}
TFC_token_secret_name: PUBLIC_ACTIVE_ACTIVE_TFC_TOKEN
TFC_token_secret_name: PUBLIC_ACTIVE_ACTIVE_LEGACY_TFC_TOKEN
TFC_workspace_substitution_pattern: s/azure-public-active-active/azure-public-active-active-legacy/

private_active_active_legacy:
Expand All @@ -188,7 +188,7 @@ jobs:
pull_request_repo_name: ${{ github.event.client_payload.github.payload.repository.full_name }}
pull_request_ref: ${{ github.event.client_payload.pull_request.head.sha }}
pull_request_comment_id: ${{ github.event.client_payload.github.payload.comment.id }}
TFC_token_secret_name: PRIVATE_ACTIVE_ACTIVE_TFC_TOKEN
TFC_token_secret_name: PRIVATE_ACTIVE_ACTIVE_LEGACY_TFC_TOKEN
TFC_workspace_substitution_pattern: s/azure-private-active-active/azure-private-active-active-legacy/
bastion_ssh_private_key_secret_name: PRIVATE_ACTIVE_ACTIVE_BASTION_SSH_KEY_BASE64

Expand All @@ -207,6 +207,6 @@ jobs:
pull_request_repo_name: ${{ github.event.client_payload.github.payload.repository.full_name }}
pull_request_ref: ${{ github.event.client_payload.pull_request.head.sha }}
pull_request_comment_id: ${{ github.event.client_payload.github.payload.comment.id }}
TFC_token_secret_name: PRIVATE_TCP_ACTIVE_ACTIVE_TFC_TOKEN
TFC_token_secret_name: PRIVATE_TCP_ACTIVE_ACTIVE_LEGACY_TFC_TOKEN
TFC_workspace_substitution_pattern: s/azure-private-tcp-active-active/azure-private-tcp-active-active-legacy/
bastion_ssh_private_key_secret_name: PRIVATE_TCP_ACTIVE_ACTIVE_BASTION_SSH_KEY_BASE64
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ module "tfe_init_fdo" {
docker_compose_yaml = module.docker_compose_config[0].docker_compose_yaml
}


# ------------------------------------------------------------------------------------
# Docker Compose File Config for TFE on instance(s) using Flexible Deployment Options
# ------------------------------------------------------------------------------------
module "docker_compose_config" {
source = "git::https://github.com/hashicorp/terraform-random-tfe-utility//modules/docker_compose_config?ref=ah/tf-5370"
count = var.is_legacy_deployment ? 0 : 1
Expand Down

0 comments on commit 9b7ba18

Please sign in to comment.