Compare commits
No commits in common. "2b8233e87084143db0ea83084ec80f57c781dcaa" and "72f0080660780fabcd9deca02dee455145f2f3c5" have entirely different histories.
2b8233e870
...
72f0080660
@ -4,7 +4,7 @@ data "template_file" "cloud_init_alpaca" {
|
||||
template = file("${path.module}/files/cloud_init.yaml")
|
||||
|
||||
vars = {
|
||||
ssh_key = var.ssh_key
|
||||
ssh_key = file("~/.ssh/id_ed25519.pub")
|
||||
hostname = "alpaca-${count.index + 1}"
|
||||
domain = "home.arpa"
|
||||
tailscale_key = var.tailscale_key
|
||||
@ -21,9 +21,10 @@ resource "null_resource" "upload_cloud_init_alpaca" {
|
||||
count = var.alpaca_vm_count
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
host = var.target_node
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
private_key = file("~/.ssh/id_ed25519")
|
||||
host = var.target_node
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
@ -38,7 +39,7 @@ data "template_file" "cloud_init_llama" {
|
||||
template = file("${path.module}/files/cloud_init.yaml")
|
||||
|
||||
vars = {
|
||||
ssh_key = var.ssh_key
|
||||
ssh_key = file("~/.ssh/id_ed25519.pub")
|
||||
hostname = "llama-${count.index + 1}"
|
||||
domain = "home.arpa"
|
||||
tailscale_key = var.tailscale_key
|
||||
@ -55,9 +56,10 @@ resource "null_resource" "upload_cloud_init_llama" {
|
||||
count = var.llama_vm_count
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
host = var.target_node
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
private_key = file("~/.ssh/id_ed25519")
|
||||
host = var.target_node
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
|
@ -79,8 +79,3 @@ variable "tailscale_key" {
|
||||
description = "Tailscale auth key"
|
||||
}
|
||||
|
||||
variable "ssh_key" {
|
||||
type = string
|
||||
description = "Public SSH key used by cloud-init"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user