{
    "variables": {
        "user": "slapos",
        "password": "slapos",
        "disk_size": "100000",
        "domain": ""
    },

    "builders":
    [
        {
            "name": "centos67",

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

            "iso_url": "http://mirrors.kernel.org/centos/6.7/isos/x86_64/CentOS-6.7-x86_64-minimal.iso",
            "iso_checksum": "9d3fec5897be6b3fed4d3dda80b8fa7bb62c616bbfd4bdcd27295ca9b764f498",
            "iso_checksum_type": "sha256",


            "http_directory": "http",

            "ssh_username": "{{user `user`}}",
            "ssh_password": "{{user `password`}}",
            "ssh_wait_timeout": "1800s",
            "shutdown_command": "sudo poweroff",

            "headless": false,
            "boot_wait": "2s",
            "boot_command": [
              "<esc>",
              "<wait>",
              "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg",
              "<enter>"
            ]
        }
    ],

    "provisioners": [
        {
            "type": "shell",
            "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
            "scripts": [
                "scripts/update-centos.sh",
                "scripts/packages-centos.sh",
                "scripts/cleanup-centos.sh"
            ]
        }
    ]
}
