Skip to content

Instantly share code, notes, and snippets.

@jadbaz
Last active July 17, 2018 16:47
Show Gist options
  • Save jadbaz/966dc43c5d31670ecf78de0ba7d59483 to your computer and use it in GitHub Desktop.
Save jadbaz/966dc43c5d31670ecf78de0ba7d59483 to your computer and use it in GitHub Desktop.
# Install Zenoss
# Zenoss requirements
yum -y remove mysql-libs.x86_64
# Download Zenoss
wget https://codeload.github.com/zenoss/core-autodeploy/tar.gz/4.2.5
tar -xvf 4.2.5
cd core-autodeploy-4.2.5
# Customize Zenoss installtion
# Edit file zenpack_actions.txt to remove the line below:
# +/opt/zenoss/packs/ZenPacks.zenoss.Microsoft.Windows-2.0.2-py2.7.egg
sed -i '/ZenPacks.zenoss.Microsoft.Windows-2.0.2-py2.7.egg/d' zenpack_actions.txt
# rpm repository "apt-sw-be" is dead!!!
# Problem: https://github.com/repoforge/rpms/issues/375
# Solution: https://github.com/repoforge/rpms/issues/375#issuecomment-239300834
sed -e 's/apt.sw.be/repository.it4i.cz\/mirrors\/repoforge/g' core-autodeploy.sh > core-autodeploy.sh.tmp && mv core-autodeploy.sh.tmp core-autodeploy.sh
# comment the read JDK for non-interactive installation
sed -e 's/less licenses\/Oracle-BCLA-JavaSE/#less licenses\/Oracle-BCLA-JavaSE/g' core-autodeploy.sh > core-autodeploy.sh.tmp && mv core-autodeploy.sh.tmp core-autodeploy.sh
# Install Zenoss (interactive)
sh core-autodeploy.sh <<< $'\nq\nyes\n'
# Interactively: <Enter>, <q>, "yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment