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
58 lines
1.5 KiB
{
|
|
"variables": {
|
|
"iso_mirror": "ftp.agdsn.de/pub/mirrors",
|
|
"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": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d",
|
|
"iso_checksum_type": "sha256",
|
|
"iso_url": "https://{{user `iso_mirror`}}/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-Minimal-1908.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": "compress",
|
|
"output": "opennms-horizon/opennms-horizon.qcow2.gz"
|
|
},
|
|
{
|
|
"type": "shell-local",
|
|
"inline": [
|
|
"cd opennms-horizon",
|
|
"mv packer-qemu opennms-horizon.qcow2",
|
|
"../gns3/create-appliance-file.sh {{user `onms-version`}} > opennms-horizon.log"
|
|
]
|
|
}
|
|
]
|
|
}
|