packer-builds

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

libvirt-centos8.json (1237B)


      1 {
      2   "variables": {
      3     "manifest": "manifest.json"
      4   },
      5   "builders":
      6   [
      7     {
      8       "type": "qemu",
      9       "iso_url": "http://linuxsoft.cern.ch/centos/8.1.1911/isos/x86_64/CentOS-8.1.1911-x86_64-boot.iso",
     10       "iso_checksum_url": "http://linuxsoft.cern.ch/centos/8.1.1911/isos/x86_64/CHECKSUM",
     11       "iso_checksum_type": "file",
     12       "output_directory": "centos8-{{ isotime \"20060102-150405\" }}",
     13       "shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
     14       "disk_size": "14000",
     15       "memory": "1024",
     16       "format": "qcow2",
     17       "accelerator": "kvm",
     18       "http_directory": "config",
     19       "ssh_username": "root",
     20       "ssh_password": "root",
     21       "ssh_timeout": "20m",
     22       "vm_name": "centos8-{{ isotime \"20060102-150405\" }}",
     23       "net_device": "virtio-net",
     24       "disk_interface": "virtio",
     25       "boot_wait": "10s",
     26       "boot_command": [
     27         "<up><tab> rd.shell ip=dhcp inst.cmdline inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter>"
     28       ]
     29     }
     30   ],
     31   "provisioners": [
     32     {
     33       "type": "shell",
     34       "script": "scripts/cloud-config.sh"
     35     }
     36   ],
     37   "post-processors": [
     38     {
     39       "type": "manifest",
     40       "output": "{{user `manifest`}}",
     41       "strip_path": true
     42     }
     43   ]
     44 }