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

{
"variables": {
"iso_mirror": "mirror.informatik.hs-fulda.de",
"opennms_release": "stable",
"onms-version": "22.0.0-1"
},
"builders": [
{
"type": "qemu",
"output_directory": "opennms-horizon",
"accelerator": "kvm",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 20000,
"headless": true,
"http_directory": "http",
"iso_checksum": "714acc0aefb32b7d51b515e25546835e55a90da9fb00417fbee2d03a62801efd",
"iso_checksum_type": "sha256",
"iso_url": "https://{{user `iso_mirror`}}/centos/7.5.1804/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"ssh_username": "root",
"ssh_password": "secret",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "/sbin/halt -h -p"
}
],
"provisioners": [
{
"type": "shell",
"override": {
"qemu": {
"scripts": [
"scripts/base.sh",
"scripts/opennms.sh",
"scripts/grafana.sh",
"scripts/cleanup.sh"
]
}
}
}
],
"post-processors": [
{
"type": "checksum",
"checksum_types": [
"md5"
],
"output": "opennms-horizon/opennms-horizon.qcow2.md5sum"
},
{
"type": "compress",
"output": "opennms-horizon/opennms-horizon.qcow2.gz"
},
{
"type": "shell-local",
"inline": [
"cd opennms-horizon",
"mv packer-qemu opennms-horizon.qcow2",
"md5sum opennms-horizon.qcow2.gz > opennms-horizon.qcow2.gz.md5sum",
"../gns3/create-appliance-file.sh {{user `onms-version`}} > opennms-horizon.log"
]
}
]
}