forked from fediversity/fediversity
use variables
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
d3a4137900
commit
d73fa538c1
1 changed files with 1 additions and 11 deletions
|
|
@ -76,8 +76,6 @@ resource "proxmox_virtual_environment_file" "upload" {
|
||||||
# PVE -> Datacenter -> Storage -> local -> Edit -> General -> Content -> check Import + Disk Images -> OK
|
# PVE -> Datacenter -> Storage -> local -> Edit -> General -> Content -> check Import + Disk Images -> OK
|
||||||
# that UI action also adds it in `/etc/pve/storage.cfg`
|
# that UI action also adds it in `/etc/pve/storage.cfg`
|
||||||
datastore_id = var.image_datastore_id
|
datastore_id = var.image_datastore_id
|
||||||
# datastore_id = "local-lvm"
|
|
||||||
# datastore_id = "backup"
|
|
||||||
node_name = var.node_name
|
node_name = var.node_name
|
||||||
overwrite = true
|
overwrite = true
|
||||||
timeout_upload = 3600
|
timeout_upload = 3600
|
||||||
|
|
@ -123,7 +121,6 @@ resource "proxmox_virtual_environment_vm" "nix_vm" {
|
||||||
}
|
}
|
||||||
|
|
||||||
disk {
|
disk {
|
||||||
# datastore_id = "linstor_storage"
|
|
||||||
datastore_id = var.vm_datastore_id
|
datastore_id = var.vm_datastore_id
|
||||||
file_format = "qcow2"
|
file_format = "qcow2"
|
||||||
interface = "scsi0"
|
interface = "scsi0"
|
||||||
|
|
@ -139,12 +136,9 @@ resource "proxmox_virtual_environment_vm" "nix_vm" {
|
||||||
# import_from = "local:import/${proxmox_virtual_environment_vm.nix_vm.vm_id}-${local.dump_name}" # bogus import name to test if it would accept self-referential values here # may not refer to itself
|
# import_from = "local:import/${proxmox_virtual_environment_vm.nix_vm.vm_id}-${local.dump_name}" # bogus import name to test if it would accept self-referential values here # may not refer to itself
|
||||||
# import_from = "local:import/${local.dump_name}"
|
# import_from = "local:import/${local.dump_name}"
|
||||||
import_from = proxmox_virtual_environment_file.upload.id
|
import_from = proxmox_virtual_environment_file.upload.id
|
||||||
# import_from = proxmox_virtual_environment_download_file.latest_ubuntu_22_jammy_qcow2_img.id
|
|
||||||
# import_from = "local:import/jammy-server-cloudimg-amd64.qcow2"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
efi_disk {
|
efi_disk {
|
||||||
# datastore_id = "linstor_storage"
|
|
||||||
datastore_id = var.vm_datastore_id
|
datastore_id = var.vm_datastore_id
|
||||||
file_format = "qcow2"
|
file_format = "qcow2"
|
||||||
type = "4m"
|
type = "4m"
|
||||||
|
|
@ -205,11 +199,7 @@ module "nixos-rebuild" {
|
||||||
nixos_conf = var.nixos_conf
|
nixos_conf = var.nixos_conf
|
||||||
# username = var.ssh_user # refers to the proxmox ssh user, not the VM one
|
# username = var.ssh_user # refers to the proxmox ssh user, not the VM one
|
||||||
username = "root"
|
username = "root"
|
||||||
# host = proxmox_virtual_environment_vm.nix_vm.ipv4_addresses[1][0] # does not exist (in time)
|
host = proxmox_virtual_environment_vm.nix_vm.ipv4_addresses[1][0]
|
||||||
host = "95.215.187.${proxmox_virtual_environment_vm.nix_vm.vm_id}"
|
|
||||||
# host = "2a00:51c0:13:1305::${proxmox_virtual_environment_vm.nix_vm.vm_id}"
|
|
||||||
# host = "95.215.187.101"
|
|
||||||
# host = "2a00:51c0:13:1305::101"
|
|
||||||
key_file = var.key_file
|
key_file = var.key_file
|
||||||
ssh_opts = var.ssh_opts
|
ssh_opts = var.ssh_opts
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue