Christian Pape 7 years ago
parent
commit
d2de4d5569
  1. 2
      gns3-qemu.json
  2. 12
      gns3/create-appliance-file.sh
  3. 0
      gns3/opennms-horizon.gns3a
  4. 0
      gns3/opennms-horizon.svg

2
gns3-qemu.json

@ -51,7 +51,7 @@
"inline": [
"cd opennms-horizon",
"md5sum opennms-horizon.qcow2.gz > opennms-horizon.qcow2.gz.md5sum",
"../appliance/create-appliance.sh {{user `onms-version`}} > opennms-horizon.log",
"../gns3/create-appliance-file.sh {{user `onms-version`}} > opennms-horizon.log",
"rm packer-qemu"
]
}

12
gns3/create-appliance-file.sh

@ -0,0 +1,12 @@
#!/bin/sh
VERSION="$1"
MD5SUM="`cat opennms-horizon.qcow2.gz.md5sum | cut -d\\ -f1`"
FILESIZE="`stat -c %s opennms-horizon.qcow2.gz`"
echo "Creating new opennms-horizon.gns3a appliance file:"
echo "- OpenNMS version.: $VERSION"
echo "- Image md5sum....: $MD5SUM"
echo "- Image filesize..: $FILESIZE"
sed -e "s/\${version}/$VERSION/" -e "s/\${md5sum}/$MD5SUM/" -e "s/\${filesize}/$FILESIZE/" ../gns3/opennms-horizon.gns3a > opennms-horizon.gns3a

0
appliance/opennms-horizon.gns3a → gns3/opennms-horizon.gns3a

0
appliance/opennms-horizon.svg → gns3/opennms-horizon.svg

Loading…
Cancel
Save