UniFi Network Controller VM image
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB

6 years ago
  1. {
  2. "variables": {
  3. "memory": "4G",
  4. "cpus": "2",
  5. "iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.8.0-amd64-netinst.iso",
  6. "iso_checksum": "cc4a6bd50925c1c4af98049060e304494bc9da61eb5eb272c556d67608de14d4e6a4b8bc1c9412a0f810083912e228569f3771ffffa7174538f3e26f45a05245",
  7. "iso_checksum_type": "sha512",
  8. "boot_wait": "3s",
  9. "boot_key_interval": "10ms",
  10. "ssh_username": "unifi",
  11. "ssh_password": "uuunifi",
  12. "ssh_timeout": "60m",
  13. "machine_hostname": "unifi-controller",
  14. "machine_domain": "lab.uncomfortably.online",
  15. "http_directory": "http/",
  16. "preseed_file": "preseed.cfg"
  17. },
  18. "builders": [
  19. {
  20. "type": "qemu",
  21. "accelerator": "kvm",
  22. "qemuargs": [
  23. [ "-m", "{{ user `memory` }}" ],
  24. [ "-smp", "cpus={{ user `cpus`}}"]
  25. ],
  26. "iso_url": "{{user `iso_url`}}",
  27. "iso_checksum": "{{user `iso_checksum`}}",
  28. "iso_checksum_type": "{{user `iso_checksum_type`}}",
  29. "http_directory": "{{user `http_directory`}}",
  30. "boot_wait": "{{user `boot_wait`}}",
  31. "boot_key_interval": "{{user `boot_key_interval`}}",
  32. "boot_command": [
  33. "<esc><wait>",
  34. "install ",
  35. "auto=true ",
  36. "url=http://{{.HTTPIP}}:{{.HTTPPort}}/{{user `preseed_file`}} ",
  37. "hostname={{user `machine_hostname`}} ",
  38. "domain={{user `machine_domain`}} ",
  39. "interface=auto ",
  40. "passwd/user-fullname={{user `ssh_username`}} ",
  41. "passwd/username={{user `ssh_username`}} ",
  42. "passwd/user-password={{user `ssh_password`}} ",
  43. "passwd/user-password-again={{user `ssh_password`}} ",
  44. "<enter>"
  45. ],
  46. "communicator": "ssh",
  47. "ssh_username": "{{user `ssh_username`}}",
  48. "ssh_password": "{{user `ssh_password`}}",
  49. "ssh_timeout": "{{user `ssh_timeout`}}"
  50. }
  51. ]
  52. }