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-fcos.json (1440B)


      1 {
      2     "variables": {
      3       "manifest": "manifest.json",
      4       "buildname": "fcos-master",
      5       "ignition_file": "master.ign",
      6       "ignition_hash": "sha256-",
      7       "coreos_install_device": "/dev/vda"
      8     },
      9     "builders":
     10     [
     11       {
     12         "type": "qemu",
     13         "iso_url": "https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/33.20210217.3.0/x86_64/fedora-coreos-33.20210217.3.0-live.x86_64.iso",
     14         "iso_checksum": "sha256:bf91335e07a97593b66e2ae9fd43924c3aa2353a5443e37b6efd77d3df883254",
     15         "output_directory": "{{user `buildname`}}",
     16         "disk_size": "14000",
     17         "memory": "1024",
     18         "format": "qcow2",
     19         "accelerator": "kvm",
     20         "http_directory": "config/fcos-ignition",
     21         "communicator": "none",
     22         "vm_name": "{{user `buildname`}}.qcow2",
     23         "net_device": "virtio-net",
     24         "disk_interface": "virtio",
     25         "boot_wait": "10s",
     26         "boot_command": [
     27           "<wait30s>",
     28           "sudo /usr/bin/coreos-installer install --ignition-url http://{{.HTTPIP}}:{{.HTTPPort}}/{{user `ignition_file`}} --ignition-hash {{user `ignition_hash`}} {{user `coreos_install_device`}}",
     29           "<enter>",
     30           "<wait90s>",
     31           "sudo -S shutdown -P now",
     32           "<enter>"
     33         ]
     34       }
     35     ],
     36     "post-processors": [
     37       {
     38         "type": "manifest",
     39         "output": "{{user `manifest`}}",
     40         "strip_path": true
     41       }
     42     ]
     43   }
     44