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.

59 lines
1.6 KiB

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": "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": "compress",
  47. "output": "opennms-horizon/opennms-horizon.qcow2.gz"
  48. },
  49. {
  50. "type": "shell-local",
  51. "inline": [
  52. "cd opennms-horizon",
  53. "md5sum opennms-horizon.qcow2.gz > opennms-horizon.qcow2.gz.md5sum",
  54. "../appliance/create-appliance.sh {{user `onms-version`}} > opennms-horizon.log",
  55. "rm packer-qemu"
  56. ]
  57. }
  58. ]
  59. }