aboutsummaryrefslogtreecommitdiffstats
path: root/openlab/RegionOne/test/compute/worker/terragrunt.hcl
blob: b57276a6dd967a97db872e78c5fe5382e9e9aafc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
  network     = local.env_vars.locals.network
}

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

include {
  path = find_in_parent_folders()
}

dependencies {
  paths = ["../../keypair", "../../network", "../../securitygroup"]
}

inputs = {

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

  node_name        = "worker-node"
  image            = "ubuntu-18.04"
  flavor           = "m1.xlarge"
  floating_ip_pool = "external"
  # Read as File stream
  user_data  = file("worker-node.sh")
  node_count = 3
}