add cloud-init templates
This commit is contained in:
parent
08d55c4f22
commit
92a04af990
@ -53,7 +53,7 @@ source "libvirt" "arch-minimal" {
|
||||
|
||||
volume {
|
||||
alias = "artifact"
|
||||
name = var.template_name
|
||||
name = var.volume_name
|
||||
pool = var.volume_pool
|
||||
readonly = false
|
||||
target_dev = "vda"
|
||||
|
@ -1,11 +1,13 @@
|
||||
image_url = "https://geo.mirror.pkgbuild.com/images/latest/Arch-Linux-x86_64-cloudimg.qcow2"
|
||||
checksum_url = "https://geo.mirror.pkgbuild.com/images/latest/Arch-Linux-x86_64-cloudimg.qcow2.SHA256"
|
||||
host_ssh_address = "server.balsillie.net"
|
||||
|
||||
host_ssh_user = "michael"
|
||||
host_ssh_address = "server.balsillie.net"
|
||||
|
||||
guest_hostname = "arch-minimal-template"
|
||||
cpu_count = 2
|
||||
memory = 2048
|
||||
type = "kvm"
|
||||
domain_type = "kvm"
|
||||
arch = "x86_64"
|
||||
chipset = "pc-q35-6.1"
|
||||
loader_type = "pflash"
|
||||
@ -13,6 +15,13 @@ loader_path = "/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd"
|
||||
secure_boot = true
|
||||
nvram_template = "/usr/share/edk2-ovmf/x64/OVMF_VARS.fd"
|
||||
nvram_path_base = "/var/lib/libvirt/qemu/nvram"
|
||||
|
||||
volume_name = "arch_minimal_template"
|
||||
volume_pool = "default"
|
||||
volume_capacity = "30G"
|
||||
|
||||
bridge_name = "br0"
|
||||
|
||||
guest_ssh_user = "arch"
|
||||
guest_ssh_port = 22
|
||||
guest_ssh_private_key = "~/.ssh/conf.d/home/arch@arch_template.key"
|
||||
|
0
packer/libvirt/arch/templates/meta_data.j2
Normal file
0
packer/libvirt/arch/templates/meta_data.j2
Normal file
0
packer/libvirt/arch/templates/network_config.j2
Normal file
0
packer/libvirt/arch/templates/network_config.j2
Normal file
0
packer/libvirt/arch/templates/user_data.j2
Normal file
0
packer/libvirt/arch/templates/user_data.j2
Normal file
Loading…
Reference in New Issue
Block a user