This commit is contained in:
parent
ec07db08db
commit
507c102dad
@ -18,20 +18,20 @@ resource "local_file" "cloud_init_alpaca" {
|
||||
filename = "${path.module}/files/cloud_init_alpaca_${count.index + 1}.yaml"
|
||||
}
|
||||
|
||||
resource "null_resource" "upload_cloud_init_alpaca" {
|
||||
count = var.alpaca_vm_count
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
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"
|
||||
}
|
||||
}
|
||||
#resource "null_resource" "upload_cloud_init_alpaca" {
|
||||
# count = var.alpaca_vm_count
|
||||
#
|
||||
# connection {
|
||||
# type = "ssh"
|
||||
# user = "root"
|
||||
# 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"
|
||||
# }
|
||||
#}
|
||||
|
||||
### Llama cloud-init template
|
||||
data "template_file" "cloud_init_llama" {
|
||||
@ -53,18 +53,18 @@ resource "local_file" "cloud_init_llama" {
|
||||
filename = "${path.module}/files/cloud_init_llama_${count.index + 1}.yaml"
|
||||
}
|
||||
|
||||
resource "null_resource" "upload_cloud_init_llama" {
|
||||
count = var.llama_vm_count
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
host = var.target_node
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
source = local_file.cloud_init_llama[count.index].filename
|
||||
destination = "/var/lib/vz/snippets/cloud_init_llama_${count.index + 1}.yaml"
|
||||
}
|
||||
}
|
||||
#resource "null_resource" "upload_cloud_init_llama" {
|
||||
# count = var.llama_vm_count
|
||||
#
|
||||
# connection {
|
||||
# type = "ssh"
|
||||
# user = "root"
|
||||
# host = var.target_node
|
||||
# }
|
||||
#
|
||||
# provisioner "file" {
|
||||
# source = local_file.cloud_init_llama[count.index].filename
|
||||
# destination = "/var/lib/vz/snippets/cloud_init_llama_${count.index + 1}.yaml"
|
||||
# }
|
||||
#}
|
||||
|
||||
|
@ -2,6 +2,11 @@ variable "proxmox_password" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "proxmox_ssh_private_key" {
|
||||
type = string
|
||||
description = "Unencrypted SSH private key used for root@flex upload"
|
||||
}
|
||||
|
||||
variable "target_node" {
|
||||
type = string
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user