Skip to content

Commit

Permalink
Merge pull request Telmate#1047 from maksimsamt/master
Browse files Browse the repository at this point in the history
Doc fix: proxmox_cloud_init_disk
  • Loading branch information
Tinyblargon authored Jun 19, 2024
2 parents 186ec3f + d7df8e5 commit b7f985a
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions docs/resources/cloud_init_disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ resource "proxmox_cloud_init_disk" "ci" {
local-hostname = local.vm_name
})
user_data = <<EOT
#cloud-config
users:
- default
ssh_authorized_keys:
- ssh-rsa AAAAB3N......
EOT
user_data = <<-EOT
#cloud-config
users:
- default
ssh_authorized_keys:
- ssh-rsa AAAAB3N......
EOT
network_config = yamlencode({
version = 1
Expand All @@ -43,27 +43,29 @@ EOT
type = "static"
address = "192.168.1.100/24"
gateway = "192.168.1.1"
dns_nameservers = ["1.1.1.1", "8.8.8.8"]
dns_nameservers = [
"1.1.1.1",
"8.8.8.8"
]
}]
}]
})
}
resource "proxmox_vm_qemu" "vm" {
....
...
// Define a disk block with media type cdrom which reference the generated cloud-init disk
disks {
scsi {
scsi0 {
cd {
iso = "${local.iso_storage_pool}:${proxmox_cloud_init_disk.ci.id}"
cdrom {
iso = "${proxmox_cloud_init_disk.ci.id}"
}
}
}
}
...
}
```

## Argument reference
Expand Down

0 comments on commit b7f985a

Please sign in to comment.