{
    "variables": {
        "user": "nexedi",
        "password": "test",
        "disk_size": ${disk-size},
        "domain": ""
    },

    "builders":
    [
        {
            "name": "blah",

            "type": "qemu",
            "format": "qcow2",
            "accelerator": "kvm",
            "disk_size": "{{ user `disk_size`}}",

            "iso_url": "http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-cd/debian-8.1.0-amd64-netinst.iso",
            "iso_checksum": "0b31bccccb048d20b551f70830bb7ad0",
            "iso_checksum_type": "md5",

            "http_directory": "http",
            "ssh_username": "{{user `user`}}",
            "ssh_password": "{{user `password`}}",
            "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",

            "boot_wait": "2s",
            "boot_command": [
                   "<esc><wait><wait>",
                   "install auto ",
                   "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
                   "debian-installer=en_US locale=en_US keymap=us ",
                   "netcfg/get_hostname={{ .Name }} ",
                   "netcfg/get_domain={{ user `domain`}} ",

                   "fb=false debconf/frontend=noninteractive ",

                   "passwd/user-fullname={{user `user`}} ",
                   "passwd/user-password={{user `password`}} ",
                   "passwd/user-password-again={{user `password`}} ",
                   "passwd/username={{user `user`}} ",

                   "<enter>"
            ]
        }
    ]
}