fix: add missing cloud-init settings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2022-08-10 16:01:24 +02:00
parent 013863027b
commit 2fed1bb8c6
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 32 additions and 4 deletions

View File

@ -79,7 +79,7 @@ logvol /var/log --fstype xfs --name=lv_log --vgname=vg00 --size=1000 --label=LOG
logvol /var/log/audit --fstype xfs --name=lv_audit --vgname=vg00 --size=1024 --label=AUDITFS --fsoptions="nosuid,noexec,nodev"
### Modifies the default set of services that will run under the default runlevel.
services --enabled=NetworkManager,sshd
services --enabled=NetworkManager,sshd,qemu-guest-agent
### Do not configure X on the installed system.
skipx

View File

@ -1,7 +1,10 @@
// Virtual Machine Settings
vm_id = 910
vm_guest_os_keyboard = de(nodeadkeys)
vm_guest_os_timezone = "Europe/Berlin"
vm_id = 910
vm_guest_os_keyboard = "de(nodeadkeys)"
vm_guest_os_timezone = "Europe/Berlin"
vm_cloud_init = true
vm_cloud_init_storage_pool = "storage01"
vm_qemu_agent = true
// Proxmox Settings
proxmox_iso_pool = "local:iso"

View File

@ -36,11 +36,17 @@ source "proxmox-iso" "rocky-linux-90" {
cpu_type = "${var.vm_cpu_type}"
memory = "${var.vm_mem_size}"
os = "${var.vm_os_type}"
cloud_init = "${var.vm_cloud_init}"
cloud_init_storage_pool = "${var.vm_cloud_init_storage_pool}"
qemu_agent = "${var.vm_qemu_agent}"
network_adapters {
bridge = "${var.vm_network_adapter_bridge}"
model = "${var.vm_network_adapter_model}"
vlan_tag = "${var.vm_network_adapter_vlan_tag}"
}
disks {
disk_size = "${var.vm_disk_size}"
format = "${var.proxmox_storage_format}"
@ -48,6 +54,7 @@ source "proxmox-iso" "rocky-linux-90" {
storage_pool_type = "${var.proxmox_storage_pool_type}"
type = "scsi"
}
scsi_controller = "virtio-scsi-pci"
// Removable Media Settings

View File

@ -142,6 +142,24 @@ variable "vm_network_adapter_vlan_tag" {
default = ""
}
variable "vm_cloud_init" {
type = bool
description = "Add a Cloud-Init CDROM drive after the virtual machine has been converted."
default = false
}
variable "vm_cloud_init_storage_pool" {
type = string
description = "Name of the Proxmox storage pool to store the Cloud-Init CDROM on."
default = ""
}
variable "vm_qemu_agent" {
type = bool
description = "Enables QEMU Agent option for this VM."
default = false
}
// Communicator Settings and Credentials
variable "build_username" {
type = string