aboutsummaryrefslogtreecommitdiffstats
path: root/openlab/RegionOne/test/keypair/terragrunt.hcl
blob: fe6500c8f80a786f0322f174a5afcd7378af3791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
  ssh_public_key = local.env_vars.locals.ssh_public_key
}

terraform {
  source = "git::https://gerrit.onap.org/r/integration/terraform//openlab/modules/openstack/keypair"
}

include {
  path = find_in_parent_folders()
}

inputs = {
  cluster_name   = "${local.region}-${local.environment}"
  ssh_public_key = local.ssh_public_key
}