From c0987507209cdfa232b5113dbb386bfc3cf87805 Mon Sep 17 00:00:00 2001 From: yoonsoonjahng Date: Thu, 10 Sep 2020 12:12:40 -0400 Subject: Added terragrunt script pulling integration/terraform. Issue-ID: INT-1719 Change-Id: I0282f010d07e0a1cc1259133f4237ea7e1d72126 Signed-off-by: yoonsoonjahng --- .../RegionOne/stage/securitygroup/terragrunt.hcl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 terragrunt/openlab/RegionOne/stage/securitygroup/terragrunt.hcl (limited to 'terragrunt/openlab/RegionOne/stage/securitygroup/terragrunt.hcl') diff --git a/terragrunt/openlab/RegionOne/stage/securitygroup/terragrunt.hcl b/terragrunt/openlab/RegionOne/stage/securitygroup/terragrunt.hcl new file mode 100644 index 0000000..3ebbb09 --- /dev/null +++ b/terragrunt/openlab/RegionOne/stage/securitygroup/terragrunt.hcl @@ -0,0 +1,20 @@ +locals { + # Automatically load account-level variables + region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl")) + env_vars = read_terragrunt_config(find_in_parent_folders("env.hcl")) + + region = local.region_vars.locals.region + environment = local.env_vars.locals.environment +} + +terraform { + source = "git::https://gerrit.onap.org/r/integration/terraform//openlab/modules/openstack/securitygroup" +} + +include { + path = find_in_parent_folders() +} + +inputs = { + cluster_name = "${local.region}-${local.environment}" +} -- cgit 1.2.3-korg