aboutsummaryrefslogtreecommitdiffstats
path: root/openlab/RegionOne/test/kubernetes/terragrunt.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'openlab/RegionOne/test/kubernetes/terragrunt.hcl')
-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