aboutsummaryrefslogtreecommitdiffstats
path: root/openlab/RegionOne/test/kubernetes
diff options
context:
space:
mode:
authoryoonsoonjahng <yoonsoon.jahng@yoppworks.com>2020-11-24 22:12:54 -0500
committerMorgan Richomme <morgan.richomme@orange.com>2020-12-01 16:26:24 +0000
commitfcc20b6ee553738034daa69e1bed93ec57e745bd (patch)
tree53ddb04124bb9a1e3343912a9fa73b4dc53c1c3a /openlab/RegionOne/test/kubernetes
parent78bb7f2409bb8f4fb826423c39641a3c9f7c07aa (diff)
Initial Terragrunt files to separate Terraform codes7.0.1guilin
Issue-ID: INT-1780 Change-Id: Ia23de2a11a31b4d2c9dc4800e45a27b035639ede Signed-off-by: yoonsoonjahng <yoonsoon.jahng@yoppworks.com> (cherry picked from commit c81979ab0a9991b4d0e355c39aa8d55ab1b7ff69)
Diffstat (limited to 'openlab/RegionOne/test/kubernetes')
-rw-r--r--openlab/RegionOne/test/kubernetes/terragrunt.hcl52
1 files changed, 52 insertions, 0 deletions
diff --git a/openlab/RegionOne/test/kubernetes/terragrunt.hcl b/openlab/RegionOne/test/kubernetes/terragrunt.hcl
new file mode 100644
index 0000000..63b44fd
--- /dev/null
+++ b/openlab/RegionOne/test/kubernetes/terragrunt.hcl
@@ -0,0 +1,52 @@
+locals {
+ # Automatically load account-level variables
+ account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
+ region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl"))
+ env_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
+
+ backend = local.account_vars.locals.backend
+ backend_state = local.account_vars.locals.backend_state
+ region = local.region_vars.locals.region
+ environment = local.env_vars.locals.environment
+ ssh_private_key_path = local.env_vars.locals.ssh_private_key_path
+
+ kubernetes_user = local.env_vars.locals.kubernetes_user
+ kubernetes_cluster_name = local.env_vars.locals.kubernetes_cluster_name
+ kubernetes_home = local.env_vars.locals.kubernetes_home
+
+ # NFS
+ nfs_enabled = local.env_vars.locals.nfs_enabled
+
+ # Helm
+ service_account = local.env_vars.locals.service_account
+ namespace = local.env_vars.locals.namespace
+}
+
+terraform {
+ source = "git::https://gerrit.onap.org/r/integration/terraform//openlab/modules/kubernetes/kubernetes"
+}
+
+include {
+ path = find_in_parent_folders()
+}
+
+dependencies {
+ paths = ["../rancher"]
+}
+
+inputs = {
+ backend = local.backend
+ backend_state = local.backend_state
+ region = local.region
+ environment = local.environment
+ ssh_private_key_path = local.ssh_private_key_path
+
+ kubernetes_user = local.kubernetes_user
+ kubernetes_cluster_name = local.kubernetes_cluster_name
+ kubernetes_home = local.kubernetes_home
+
+ nfs_enabled = local.nfs_enabled
+
+ service_account = local.service_account
+ namespace = local.namespace
+} \ No newline at end of file