This commit is contained in:
parent
524bd92da4
commit
fcdde6cf1f
@ -4,9 +4,9 @@ data "template_file" "cloud_init_global" {
|
|||||||
template = file("${path.module}/files/cloud_init_global.yaml")
|
template = file("${path.module}/files/cloud_init_global.yaml")
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
hostname = "generic"
|
hostname = "generic"
|
||||||
domain = "home.arpa"
|
domain = "home.arpa"
|
||||||
TS_AUTHKEY = var.TS_AUTHKEY
|
TS_AUTHKEY = var.TS_AUTHKEY
|
||||||
SSH_KEY_PUBLIC = var.SSH_KEY_PUBLIC
|
SSH_KEY_PUBLIC = var.SSH_KEY_PUBLIC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -15,19 +15,3 @@ resource "local_file" "cloud_init_global" {
|
|||||||
content = data.template_file.cloud_init_global.rendered
|
content = data.template_file.cloud_init_global.rendered
|
||||||
filename = "${path.module}/files/cloud_init_global.yaml"
|
filename = "${path.module}/files/cloud_init_global.yaml"
|
||||||
}
|
}
|
||||||
|
|
||||||
#resource "null_resource" "upload_cloud_init_alpaca" {
|
|
||||||
# count = var.alpaca_vm_count
|
|
||||||
#
|
|
||||||
# connection {
|
|
||||||
# type = "ssh"
|
|
||||||
# user = "root"
|
|
||||||
# private_key = var.ssh_key
|
|
||||||
# host = var.target_node
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# provisioner "file" {
|
|
||||||
# source = local_file.cloud_init_alpaca[count.index].filename
|
|
||||||
# destination = "/var/lib/vz/snippets/cloud_init_alpaca_${count.index + 1}.yaml"
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user