-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tf
33 lines (31 loc) · 876 Bytes
/
template.tf
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
data "template_file" "userdata" {
template = file("${path.module}/userdata")
vars = {
hostname = var.hostname
domainname = var.domainname
username = var.username
ssh_public_key = file(var.ssh_public_key)
}
}
#data template_file "metadata" {
# template = file("${path.module}/metadata")
# vars = {
# dhcp = var.dhcp
# hostname = var.hostname_prefix
# ip_address = var.ip_address
# netmask = var.netmask
# nameservers = jsonencode(var.nameservers)
# gateway = var.gateway
# }
#}
#data template_file "networkconfig" {
# template = file("${path.module}/networkconfig")
# vars = {
# dhcp = var.dhcp
# hostname = var.hostname_prefix
# ip_address = var.ip_address
# netmask = var.netmask
# nameservers = jsonencode(var.nameservers)
# gateway = var.gateway
# }
#}