Initial commit
This commit is contained in:
15
locals.tf
Normal file
15
locals.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
locals {
|
||||
letters = [
|
||||
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
|
||||
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
|
||||
"u", "v", "w", "x", "y", "z"
|
||||
]
|
||||
|
||||
vms = {
|
||||
for i in range(var.vm_count) :
|
||||
"9999aa${local.letters[floor(i / 26)]}${local.letters[i % 26]}" => {
|
||||
vmid = 9010 + i
|
||||
ip = cidrhost("10.1.90.0/24", 100 + i)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user