aboutsummaryrefslogtreecommitdiffstats
path: root/openlab/RegionOne/stage/securitygroup/terragrunt.hcl
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2020-12-01 16:26:12 +0000
committerGerrit Code Review <gerrit@onap.org>2020-12-01 16:26:12 +0000
commit3d77cd259c2e4636af301b97c4e1acb1100ba922 (patch)
tree095f63f882ffb3cbae778f299a43608e7de8d524 /openlab/RegionOne/stage/securitygroup/terragrunt.hcl
parentbbca5c14be7ef2370e20b28e33a8f23a148de101 (diff)
parentc81979ab0a9991b4d0e355c39aa8d55ab1b7ff69 (diff)
Merge "Initial Terragrunt files to separate Terraform codes"
Diffstat (limited to 'openlab/RegionOne/stage/securitygroup/terragrunt.hcl')
-rw-r--r--openlab/RegionOne/stage/securitygroup/terragrunt.hcl20
1 files changed, 20 insertions, 0 deletions
diff --git a/openlab/RegionOne/stage/securitygroup/terragrunt.hcl b/openlab/RegionOne/stage/securitygroup/terragrunt.hcl
new file mode 100644
index 0000000..3ebbb09
--- /dev/null
+++ b/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}"
+}