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.

66 lines
1.7 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. {
  2. "variables": {
  3. "iso_mirror": "mirror.informatik.hs-fulda.de",
  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": "714acc0aefb32b7d51b515e25546835e55a90da9fb00417fbee2d03a62801efd",
  20. "iso_checksum_type": "sha256",
  21. "iso_url": "https://{{user `iso_mirror`}}/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.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": "checksum",
  47. "checksum_types": [
  48. "md5"
  49. ],
  50. "output": "opennms-horizon/opennms-horizon.qcow2.md5sum"
  51. },
  52. {
  53. "type": "compress",
  54. "output": "opennms-horizon/opennms-horizon.qcow2.gz"
  55. },
  56. {
  57. "type": "shell-local",
  58. "inline": [
  59. "cd opennms-horizon",
  60. "mv packer-qemu opennms-horizon.qcow2",
  61. "md5sum opennms-horizon.qcow2.gz > opennms-horizon.qcow2.gz.md5sum",
  62. "../gns3/create-appliance-file.sh {{user `onms-version`}} > opennms-horizon.log"
  63. ]
  64. }
  65. ]
  66. }