{ "variables": { "iso_url": "file:///srv/ftp/iso/latest/archlinux-{{isotime \"2006.01\"}}.01-x86_64.iso", "iso_checksum_url": "file:///srv/ftp/iso/latest/sha1sums.txt", "iso_checksum_type": "sha1", "disk_size": "20480", "memory": "1024", "cpus": "2", "headless": "true", "atlas_token": "PLACEHOLDER", "write_zeroes": "", "boot_wait": "30s" }, "builders": [ { "type": "virtualbox-iso", "boot_wait": "{{user `boot_wait`}}", "http_directory": "http", "disk_size": "{{user `disk_size`}}", "guest_os_type": "ArchLinux", "iso_checksum_url": "{{user `iso_checksum_url`}}", "iso_checksum_type": "{{user `iso_checksum_type`}}", "iso_url": "{{user `iso_url`}}", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, "ssh_wait_timeout": "10000s", "shutdown_command": "sudo systemctl poweroff", "guest_additions_mode": "disable", "headless": "{{user `headless`}}", "vboxmanage": [ [ "modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}" ], [ "modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}" ] ], "boot_command": [ "", "curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'", "bash install.sh < install-chroot.sh && systemctl reboot" ] }, { "type": "qemu", "boot_wait": "{{user `boot_wait`}}", "http_directory": "http", "disk_size": "{{user `disk_size`}}", "iso_checksum_url": "{{user `iso_checksum_url`}}", "iso_checksum_type": "{{user `iso_checksum_type`}}", "iso_url": "{{user `iso_url`}}", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, "ssh_wait_timeout": "10000s", "shutdown_command": "sudo systemctl poweroff", "headless": "{{user `headless`}}", "qemuargs": [ [ "-m", "{{user `memory`}}" ], [ "-smp", "{{user `cpus`}}" ] ], "boot_command": [ "", "curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'", "bash install.sh < install-chroot.sh && systemctl reboot" ] }, { "type": "vmware-iso", "boot_wait": "{{user `boot_wait`}}", "http_directory": "http", "disk_size": "{{user `disk_size`}}", "iso_checksum_url": "{{user `iso_checksum_url`}}", "iso_checksum_type": "{{user `iso_checksum_type`}}", "iso_url": "{{user `iso_url`}}", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, "ssh_wait_timeout": "10000s", "shutdown_command": "sudo systemctl poweroff", "headless": "{{user `headless`}}", "vmx_data": {"memsize": "{{user `memory`}}"}, "boot_command": [ "", "curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'", "bash install.sh < install-chroot.sh && systemctl reboot" ] } ], "provisioners": [ { "type": "shell", "scripts": [ "provision/postinstall.sh", "provision/virtualbox.sh", "provision/cleanup.sh" ], "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", "only": ["virtualbox-iso"] }, { "type": "shell", "scripts": [ "provision/postinstall.sh", "provision/qemu.sh", "provision/cleanup.sh" ], "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", "only": ["qemu"] }, { "type": "shell", "scripts": [ "provision/postinstall.sh", "provision/vmware.sh", "provision/cleanup.sh" ], "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", "only": ["vmware-iso"] }, { "type": "shell", "scripts": [ "provision/write_zeroes.sh" ], "execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; then echo 'vagrant'|sudo -S sh '{{.Path}}'; fi" } ], "post-processors": [ [ { "type": "vagrant", "keep_input_artifact": false, "output": "Archlinux32-{{ .Provider }}-{{isotime \"2006-01-02\"}}.box" }, { "type": "vagrant-cloud", "only": ["virtualbox-iso"], "access_token": "{{user `atlas_token`}}", "box_tag": "archlinux32/archlinux32-devel", "version": "{{isotime \"2006.01.02\"}}" }, { "type": "vagrant-cloud", "only": ["qemu"], "access_token": "{{user `atlas_token`}}", "box_tag": "archlinux32/archlinux32-devel", "version": "{{isotime \"2006.01.02\"}}" }, { "type": "vagrant-cloud", "only": ["vmware-iso"], "access_token": "{{user `atlas_token`}}", "box_tag": "archlinux32/archlinux32-devel", "version": "{{isotime \"2006.01.02\"}}" } ] ] }