Christian Pape 3 years ago
parent
commit
3a2472870e
  1. 8
      gns3-qemu.json
  2. 2
      gns3/create-appliance-file.sh
  3. 2
      scripts/grafana.sh

8
gns3-qemu.json

@ -42,13 +42,6 @@
}
],
"post-processors": [
{
"type": "checksum",
"checksum_types": [
"md5"
],
"output": "opennms-horizon/opennms-horizon.qcow2.md5sum"
},
{
"type": "compress",
"output": "opennms-horizon/opennms-horizon.qcow2.gz"
@ -58,7 +51,6 @@
"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"
]
}

2
gns3/create-appliance-file.sh

@ -1,7 +1,7 @@
#!/bin/sh
VERSION="$1"
MD5SUM="`cat opennms-horizon.qcow2.md5sum | awk '{print $1}'`"
MD5SUM="`md5sum opennms-horizon.qcow2 | awk '{print $1}'`"
FILESIZE="`wc -c opennms-horizon.qcow2 | awk '{print $1}'`"
echo "Creating new opennms-horizon.gns3a appliance file:"

2
scripts/grafana.sh

@ -5,4 +5,4 @@ systemctl start grafana-server
firewall-cmd --zone=public --permanent --add-port=3000/tcp
sleep 10
curl 'http://admin:admin@localhost:3000/api/datasources' -X POST -H 'Content-Type:application/json;charset=UTF-8' --data-binary '{"name":"OpenNMS","type":"opennms","access":"proxy","url":"http://localhost:8980/opennms","isDefault":true,"basicAuth":true,"basicAuthUser":"admin","basicAuthPassword":"admin"}'
# curl 'http://admin:admin@localhost:3000/api/datasources' -X POST -H 'Content-Type:application/json;charset=UTF-8' --data-binary '{"name":"OpenNMS","type":"opennms","access":"proxy","url":"http://localhost:8980/opennms","isDefault":true,"basicAuth":true,"basicAuthUser":"admin","basicAuthPassword":"admin"}'
Loading…
Cancel
Save