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.

41 lines
878 B

  1. {
  2. "variables": {
  3. "source_image": null,
  4. "root_password": null,
  5. "boot_wait": "10s",
  6. "output_directory": "output/unifi/"
  7. },
  8. "builders": [
  9. {
  10. "type": "virtualbox-ovf",
  11. "format": "ova",
  12. "source_path": "{{user `source_image`}}",
  13. "checksum_type": "none",
  14. "output_directory": "{{user `output_directory`}}",
  15. "boot_wait": "{{user `boot_wait`}}",
  16. "shutdown_command": "echo '{{user `root_password`}}' | sudo -S poweroff",
  17. "communicator": "ssh",
  18. "ssh_username": "root",
  19. "ssh_password": "{{user `root_password`}}"
  20. }
  21. ],
  22. "provisioners": [
  23. {
  24. "type": "shell",
  25. "inline": [
  26. "apk update",
  27. "apk add python sudo"
  28. ]
  29. },
  30. {
  31. "type": "ansible",
  32. "extra_arguments": [],
  33. "user": "root",
  34. "playbook_file": "./provisioning/setup.yml"
  35. }
  36. ]
  37. }