blob: fadd4c9fae7c70bf132803aa7d1522610879d24f (
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 = "control-node"
image = "ubuntu-18.04"
flavor = "m1.xlarge"
floating_ip_pool = "external"
# Read as File stream
user_data = file("control-plane.sh")
node_count = 3
}
|