dt-freebsd-9.2-RELEASE.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "builders": [
  3. {
  4. "type": "virtualbox",
  5. "iso_checksum": "a8c1751b83646530148766618a89a97009e7500e7057a5cbe3afd74ef480c915",
  6. "iso_checksum_type": "sha256",
  7. "iso_url": "http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/9.2/FreeBSD-9.2-RELEASE-amd64-disc1.iso",
  8. "ssh_username": "vagrant",
  9. "boot_command": [
  10. "<enter>",
  11. "<wait10><wait5>",
  12. "s",
  13. "mkdir -p /tmp/bsdinstall_etc<enter>",
  14. "dhclient em0<enter>",
  15. "<wait5>",
  16. "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/installerconfig.sh<enter>",
  17. "<wait>",
  18. "bsdinstall script /tmp/installerconfig<enter>",
  19. "<wait10><wait10><wait10>",
  20. "shutdown -r now<enter>"
  21. ],
  22. "guest_os_type": "FreeBSD_64",
  23. "http_directory": "http",
  24. "shutdown_command": "shutdown -p now",
  25. "ssh_password": "vagrant"
  26. }
  27. ],
  28. "provisioners": [
  29. {
  30. "type": "shell",
  31. "script": "scripts/vm_cleanup.sh",
  32. "override": {
  33. "virtualbox": {
  34. "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
  35. }
  36. }
  37. }
  38. ],
  39. "post-processors": [
  40. {
  41. "type": "vagrant",
  42. "keep_input_artifact": true
  43. }
  44. ]
  45. }