Christian Pape 7 years ago
parent
commit
2d7dcd3306
  1. 2
      gns3/create-appliance-file.sh
  2. 16
      scripts/opennms.sh

2
gns3/create-appliance-file.sh

@ -8,5 +8,5 @@ echo "Creating new opennms-horizon.gns3a appliance file:"
echo "- OpenNMS version.: $VERSION" echo "- OpenNMS version.: $VERSION"
echo "- Image md5sum....: $MD5SUM" echo "- Image md5sum....: $MD5SUM"
echo "- Image filesize..: $FILESIZE" echo "- Image filesize..: $FILESIZE"
sed -i 's/packer-qemu/opennms-horizon.qcow2/g' opennms-horizon.qcow2.md5sum
sed -e "s/\${version}/$VERSION/" -e "s/\${md5sum}/$MD5SUM/" -e "s/\${filesize}/$FILESIZE/" ../gns3/opennms-horizon.gns3a > opennms-horizon.gns3a sed -e "s/\${version}/$VERSION/" -e "s/\${md5sum}/$MD5SUM/" -e "s/\${filesize}/$FILESIZE/" ../gns3/opennms-horizon.gns3a > opennms-horizon.gns3a

16
scripts/opennms.sh

@ -77,24 +77,24 @@ systemctl enable opennms
firewall-cmd --zone=public --permanent --add-port=8980/tcp firewall-cmd --zone=public --permanent --add-port=8980/tcp
echo " ____ _ _ __ __ _____ " > /etc/issue echo " ____ _ _ __ __ _____ " > /etc/issue
echo " / __ \\ | \\ | | \\/ |/ ____| " >> /etc/issue
echo " | | | |_ __ ___ _ __ | \\| | \\ / | (___ " >> /etc/issue
echo " | | | | '_ \\ / _ \\ '_ \\| . ' | |\\/| |\\___ \\ " >> /etc/issue
echo " | |__| | |_) | __/ | | | |\\ | | | |____) | " >> /etc/issue
echo " \\____/| .__/ \\___|_| |_|_| \\_|_| |_|_____/ " >> /etc/issue
echo " / __ \\\\ | \\\\ | | \\\\/ |/ ____| " >> /etc/issue
echo " | | | |_ __ ___ _ __ | \\\\| | \\\\ / | (___ " >> /etc/issue
echo " | | | | '_ \\\\ / _ \\\\ '_ \\\\| . ' | |\\\\/| |\\\\___ \\\\ " >> /etc/issue
echo " | |__| | |_) | __/ | | | |\\\\ | | | |____) | " >> /etc/issue
echo " \\\\____/| .__/ \\\\___|_| |_|_| \\\\_|_| |_|_____/ " >> /etc/issue
echo " | | " >> /etc/issue echo " | | " >> /etc/issue
echo " |_| " >> /etc/issue echo " |_| " >> /etc/issue
echo "" >> /etc/issue echo "" >> /etc/issue
echo "******* Host access ********" >> /etc/issue echo "******* Host access ********" >> /etc/issue
echo "IP address: \4" >> /etc/issue
echo "IP address: \4{eth0}" >> /etc/issue
echo "Credentials: root / secret" >> /etc/issue echo "Credentials: root / secret" >> /etc/issue
echo "" >> /etc/issue echo "" >> /etc/issue
echo "****** OpenNMS access ******" >> /etc/issue echo "****** OpenNMS access ******" >> /etc/issue
echo "URL: http://\4:8980/opennms" >> /etc/issue
echo "URL: http://\4{eth0}:8980/opennms" >> /etc/issue
echo "Credentials: admin / admin" >> /etc/issue echo "Credentials: admin / admin" >> /etc/issue
echo "" >> /etc/issue echo "" >> /etc/issue
echo "****** Grafana access ******" >> /etc/issue echo "****** Grafana access ******" >> /etc/issue
echo "URL: http://\4:3000" >> /etc/issue
echo "URL: http://\4{eth0}:3000" >> /etc/issue
echo "Credentials: admin / admin" >> /etc/issue echo "Credentials: admin / admin" >> /etc/issue
echo "" >> /etc/issue echo "" >> /etc/issue
echo "\S" >> /etc/issue echo "\S" >> /etc/issue

Loading…
Cancel
Save