Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/vagrant.json
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-05-06 02:59:06 +0200
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-05-06 02:59:06 +0200
commit02227c3029362fec100413f026e8982efb0b08e9 (patch)
treeca298e75d50e1a3326512dd86c7e176a3e91bbbf /vagrant.json
parent91abbb21be4e65a39c71f157e03f618bb54484a5 (diff)
added better version of vagrant.json
Diffstat (limited to 'vagrant.json')
-rw-r--r--vagrant.json60
1 files changed, 60 insertions, 0 deletions
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": [
+ "<enter><wait10><wait10><wait10><wait10>",
+ "curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'<enter><wait>",
+ "bash install.sh < install-chroot.sh && systemctl reboot<enter>"
+ ]
+ }
+ ],
+ "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"
+ }
+ ]
+}