1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- {
- "variables": {
- "iso_url": "https://mirrors.kernel.org/archlinux/iso/{{isotime \"2006.01\"}}.01/archlinux-{{isotime \"2006.01\"}}.01-x86_64.iso",
- "iso_checksum_url": "https://mirrors.kernel.org/archlinux/iso/{{isotime \"2006.01\"}}.01/sha1sums.txt",
- "root_password": "arch",
- "username": "vagrant",
- "password": "vagrant"
- },
- "builders": [
- {
- "headless": false,
- "type": "virtualbox-iso",
- "iso_url": "{{ user `iso_url` }}",
- "iso_checksum_url": "{{ user `iso_checksum_url` }}",
- "iso_checksum_type": "sha1",
- "vm_name": "arch-desktop",
- "guest_os_type": "ArchLinux_64",
- "guest_additions_mode": "disable",
- "virtualbox_version_file": "",
- "vboxmanage": [
- ["modifyvm", "{{.Name}}", "--firmware", "efi"],
- ["modifyvm", "{{.Name}}", "--memory", "1024"],
- ["modifyvm", "{{.Name}}", "--accelerate3d", "on"]
- ],
- "boot_wait": "5s",
- "boot_command": [
- "<enter><wait40s>",
- "printf \"{{user `root_password`}}\\n{{user `root_password`}}\\n\" | passwd<enter>",
- "systemctl start sshd.service<enter>"
- ],
- "disk_size": 65536,
- "iso_interface": "sata",
- "hard_drive_interface": "sata",
- "output_directory": "dist/arch-desktop",
- "ssh_username": "root",
- "ssh_password": "{{user `root_password`}}",
- "ssh_timeout": "20m",
- "shutdown_command": "systemctl poweroff"
- }
- ],
- "provisioners": [
- {
- "type": "file",
- "source": "arch.sh",
- "destination": "arch.sh"
- },
- {
- "type": "file",
- "source": "install",
- "destination": "install"
- },
- {
- "type": "shell",
- "skip_clean": true,
- "expect_disconnect": true,
- "environment_vars": [
- "DEBUG=true",
- "root_password={{user `root_password`}}",
- "username={{user `username`}}",
- "password={{user `password`}}"
- ],
- "script": "setup/install.sh"
- },
- {
- "type": "shell",
- "script": "setup/vbox.sh"
- },
- {
- "type": "shell",
- "script": "setup/clean.sh"
- }
- ],
- "post-processors": [
- {
- "type": "vagrant",
- "compression_level": 9,
- "output": "dist/arch-desktop.box"
- }
- ]
- }
|