packer-builds

Packer Builds for LXC and Libvirt
git clone https://git.in0rdr.ch/packer-builds.git
Log | Files | Refs | README

commit 6f050b1383616189b5594ae0274685c1330175c4
parent fa3c781eb0cca81925abd36dbe81dcdc82465894
Author: Andreas Gruhler <andreas.gruhler@adfinis-sygroup.ch>
Date:   Tue,  7 Apr 2020 11:55:53 +0200

add libvirt centos8 build

Diffstat:
Alibvirt-centos8.json | 44++++++++++++++++++++++++++++++++++++++++++++
Rcentos8.json -> proxmox-centos8.json | 0
2 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/libvirt-centos8.json b/libvirt-centos8.json @@ -0,0 +1,44 @@ +{ + "variables": { + "manifest": "manifest.json" + }, + "builders": + [ + { + "type": "qemu", + "iso_url": "http://linuxsoft.cern.ch/centos/8.1.1911/isos/x86_64/CentOS-8.1.1911-x86_64-boot.iso", + "iso_checksum_url": "http://linuxsoft.cern.ch/centos/8.1.1911/isos/x86_64/CHECKSUM", + "iso_checksum_type": "file", + "output_directory": "centos8-{{ isotime \"20060102-150405\" }}", + "shutdown_command": "echo 'packer' | sudo -S shutdown -P now", + "disk_size": "14000", + "memory": "1024", + "format": "qcow2", + "accelerator": "kvm", + "http_directory": "config", + "ssh_username": "root", + "ssh_password": "root", + "ssh_timeout": "20m", + "vm_name": "centos8-{{ isotime \"20060102-150405\" }}", + "net_device": "virtio-net", + "disk_interface": "virtio", + "boot_wait": "10s", + "boot_command": [ + "<up><tab> rd.shell ip=dhcp inst.cmdline inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter>" + ] + } + ], + "provisioners": [ + { + "type": "shell", + "script": "scripts/cloud-config.sh" + } + ], + "post-processors": [ + { + "type": "manifest", + "output": "{{user `manifest`}}", + "strip_path": true + } + ] +} diff --git a/centos8.json b/proxmox-centos8.json