From 02227c3029362fec100413f026e8982efb0b08e9 Mon Sep 17 00:00:00 2001 From: Christian Rebischke Date: Sat, 6 May 2017 02:59:06 +0200 Subject: added better version of vagrant.json --- vagrant.json | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 vagrant.json diff --git a/vagrant.json b/vagrant.json new file mode 100644 index 0000000..cfb52d8 --- /dev/null +++ b/vagrant.json @@ -0,0 +1,60 @@ +{ + "variables": { + "iso_url": "https://downloads.archlinux.de/iso/2017.05.01/archlinux-2017.05.01-x86_64.iso", + "iso_checksum_type": "sha1", + "iso_checksum": "91a195bf1395694151fc3f7f766e9d1233e2aed9" + }, + "builders": [ + { + "type": "virtualbox-iso", + "boot_wait": "10s", + "http_directory": "http", + "disk_size": 20480, + "guest_os_type": "ArchLinux", + "iso_checksum": "{{user `iso_checksum`}}", + "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": "systemctl poweroff", + "vboxmanage": [ + [ + "modifyvm", + "{{.Name}}", + "--memory", + "1024" + ], + [ + "modifyvm", + "{{.Name}}", + "--cpus", + "2" + ] + ], + "boot_command": [ + "", + "curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'", + "bash install.sh < install-chroot.sh && systemctl reboot" + ] + } + ], + "provisioners": [ + { + "type": "shell", + "scripts": [ + "scripts/postinstall.sh", + "scripts/virtualbox.sh", + "scripts/zerodisk.sh" + ], + "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'" + } + ], + "post-processors": [ + { + "type": "vagrant", + "output": "Arch-Linux-x86_64-{{ .Provider }}-{{isotime '1970-01-01'}}.box" + } + ] +} -- cgit v1.2.3