Advertisement
spyderdyne

debirf_rescue_packer config

Oct 26th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. https://atlas.hashicorp.com/spyderdyne/build-configurations/debirf-rescue_stable_3.2.0-4-amd64/
  2.  
  3. template.json
  4. {
  5. "builders": [
  6. {
  7. "type": "virtualbox-iso",
  8. "guest_os_type": "Ubuntu_64",
  9. "iso_url":
  10.  
  11. "http://debirf.cmrg.net/autobuilds/amd64/stable/rescue/debirf-rescue_stable_3.2.0-4-amd64.iso",
  12. "iso_checksum":
  13. "2b314975a9180576aad44492d8c6aab7eadbc696a28d36c13a2048a2ad4ed6b9",
  14. "iso_checksum_type": "sha256",
  15. "ssh_username": "packer",
  16. "ssh_password": "packer",
  17. "shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
  18. }
  19. ],
  20.  
  21. "provisioners": [
  22. {
  23. "type": "shell",
  24. "inline": [
  25. "cat <<EOF > '/etc/network/interfaces'
  26. auto lo
  27. iface lo inet loopback
  28. auto eth0=dhcp
  29. iface dhcp inet dhcp
  30. EOF",
  31. "apt-get update",
  32. "apt-get install -y openssh-server",
  33.  
  34. }
  35. ]
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement