Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

42 update to incorporate revised terragrunt approach #43

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/verify-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,17 @@ jobs:

echo ""
echo "*** Start terraform.tfvars ***"
cat terraform.tfvars
cat cluster.tfvars
cat gitops.tfvars
echo "*** End terraform.tfvars ***"
echo ""

./apply-all.sh
./apply-all.sh -a

- name: Terraform Destroy - ${{ matrix.flavor }},${{ matrix.storage }}
if: ${{ always() }}
run: |
cd ../workspaces/current
./destroy-all.sh
./destroy-all.sh -a


3 changes: 3 additions & 0 deletions 1-quickstart/.mocks/mock/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include "root" {
path = find_in_parent_folders()
}
72 changes: 0 additions & 72 deletions 1-quickstart/105-azure-ocp-ipi/apply.sh

This file was deleted.

7 changes: 0 additions & 7 deletions 1-quickstart/105-azure-ocp-ipi/destroy.sh

This file was deleted.

3 changes: 3 additions & 0 deletions 1-quickstart/105-azure-ocp-ipi/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include "root" {
path = find_in_parent_folders()
}
72 changes: 0 additions & 72 deletions 1-quickstart/110-azure-acme-certificate/apply.sh

This file was deleted.

7 changes: 0 additions & 7 deletions 1-quickstart/110-azure-acme-certificate/destroy.sh

This file was deleted.

18 changes: 0 additions & 18 deletions 1-quickstart/110-azure-acme-certificate/terraform/terragrunt.hcl

This file was deleted.

26 changes: 26 additions & 0 deletions 1-quickstart/110-azure-acme-certificate/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
include "root" {
path = find_in_parent_folders()
}

locals {
dependencies = yamldecode(file("${get_parent_terragrunt_dir()}/layers.yaml"))

dep_105 = local.dependencies.names_105
mock_105 = local.dependencies.mock_105
cluster_config_path = fileexists("${get_parent_terragrunt_dir()}/${local.dep_105}/terragrunt.hcl") ? "${get_parent_terragrunt_dir()}/${local.dep_105}" : "${get_parent_terragrunt_dir()}/.mocks/${local.mock_105}"
}

dependency "ocp-ipi" {
config_path = local.cluster_config_path

mock_outputs_allowed_terraform_commands = ["init","validate","plan"]
mock_outputs = {
bin_dir = "fake-bin-dir"
config_file_path = "fake/config/file/path"
}
}

inputs = {
bin_dir = dependency.ocp-ipi.outputs.bin_dir
config_file_path = dependency.ocp-ipi.outputs.config_file_path
}
74 changes: 0 additions & 74 deletions 1-quickstart/110-azure-byo-certificate/apply.sh

This file was deleted.

7 changes: 0 additions & 7 deletions 1-quickstart/110-azure-byo-certificate/destroy.sh

This file was deleted.

18 changes: 0 additions & 18 deletions 1-quickstart/110-azure-byo-certificate/terraform/terragrunt.hcl

This file was deleted.

26 changes: 26 additions & 0 deletions 1-quickstart/110-azure-byo-certificate/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
include "root" {
path = find_in_parent_folders()
}

locals {
dependencies = yamldecode(file("${get_parent_terragrunt_dir()}/layers.yaml"))

dep_105 = local.dependencies.names_105
mock_105 = local.dependencies.mock_105
cluster_config_path = fileexists("${get_parent_terragrunt_dir()}/${local.dep_105}/terragrunt.hcl") ? "${get_parent_terragrunt_dir()}/${local.dep_105}" : "${get_parent_terragrunt_dir()}/.mocks/${local.mock_105}"
}

dependency "ocp-ipi" {
config_path = local.cluster_config_path

mock_outputs_allowed_terraform_commands = ["init","validate","plan"]
mock_outputs = {
bin_dir = "fake-bin-dir"
config_file_path = "fake/config/file/path"
}
}

inputs = {
bin_dir = dependency.ocp-ipi.outputs.bin_dir
config_file_path = dependency.ocp-ipi.outputs.config_file_path
}
Loading