mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 10:47:41 +00:00
test
This commit is contained in:
@@ -7,6 +7,20 @@ terraform {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------
|
||||||
|
# Cloud‑Init snippet – must live in the same module as the VM
|
||||||
|
# ---------------------------------------------------------------
|
||||||
|
resource "proxmox_virtual_environment_file" "cloud_config" {
|
||||||
|
content_type = "snippets"
|
||||||
|
datastore_id = "local"
|
||||||
|
node_name = "pve-node"
|
||||||
|
|
||||||
|
source_raw {
|
||||||
|
data = file("${path.module}/user-data.yaml")
|
||||||
|
file_name = "debian-cloud-config.yaml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
resource "proxmox_virtual_environment_vm" "debian_vm" {
|
resource "proxmox_virtual_environment_vm" "debian_vm" {
|
||||||
name = "debian-bgp-node"
|
name = "debian-bgp-node"
|
||||||
node_name = var.node_name
|
node_name = var.node_name
|
||||||
|
|||||||
Reference in New Issue
Block a user