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.

58 lines
1.5 KiB

6 years ago
4 years ago
6 years ago
6 years ago
6 years ago
4 years ago
6 years ago
4 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. {
  2. "variables": {
  3. "iso_mirror": "ftp.agdsn.de/pub/mirrors",
  4. "opennms_release": "stable",
  5. "onms-version": "22.0.0-1"
  6. },
  7. "builders": [
  8. {
  9. "type": "qemu",
  10. "output_directory": "opennms-horizon",
  11. "accelerator": "kvm",
  12. "boot_command": [
  13. "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
  14. ],
  15. "boot_wait": "10s",
  16. "disk_size": 20000,
  17. "headless": true,
  18. "http_directory": "http",
  19. "iso_checksum": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d",
  20. "iso_checksum_type": "sha256",
  21. "iso_url": "https://{{user `iso_mirror`}}/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso",
  22. "ssh_username": "root",
  23. "ssh_password": "secret",
  24. "ssh_port": 22,
  25. "ssh_wait_timeout": "10000s",
  26. "shutdown_command": "/sbin/halt -h -p"
  27. }
  28. ],
  29. "provisioners": [
  30. {
  31. "type": "shell",
  32. "override": {
  33. "qemu": {
  34. "scripts": [
  35. "scripts/base.sh",
  36. "scripts/opennms.sh",
  37. "scripts/grafana.sh",
  38. "scripts/cleanup.sh"
  39. ]
  40. }
  41. }
  42. }
  43. ],
  44. "post-processors": [
  45. {
  46. "type": "compress",
  47. "output": "opennms-horizon/opennms-horizon.qcow2.gz"
  48. },
  49. {
  50. "type": "shell-local",
  51. "inline": [
  52. "cd opennms-horizon",
  53. "mv packer-qemu opennms-horizon.qcow2",
  54. "../gns3/create-appliance-file.sh {{user `onms-version`}} > opennms-horizon.log"
  55. ]
  56. }
  57. ]
  58. }