Moogsoft Docs

Pre-Install Offline RPMs

If you cannot use yum to connect to package repositories outside your network from the machines where you are installing AIOPs, you can download tarball packages of the Moogsoft AIOps repositories to run an offline installation. The offline repository distributions include all required packages to install Moogsoft AIOps on RHEL 6 or RHEL/CentOS 7 server.

These instructions guide you through the process to set up the local yum repositories so you can continue with an offline installation or upgrade. After you set up your repositories, you can continue with one of the following:

This procedure does not support a relocatable installation.

Before You Begin

  • Contact Moogsoft Support to request the offline tarballs.
  • Ensure you have root access to the system where you are installing.

Moogsoft AIOps Installation Files

To improve download times, the distribution for the offline installation of Moogsoft AIOps comes in two separate archives:

  • A "BASE" repository containing the dependent packages to install Moogsoft AIOps for either RHEL 6 or RHEL/CentOS 7. The base package follows the following naming convention:

    <date/timestamp>-MoogsoftBASE<OS_Version>_offline_repo.tar.gz
    Example: 2016-05-30-1464646759-MoogsoftBASE7_offline_repo.tar.gz

    Note

    Verify you have the correct files for your CentOS/RHEL version.

  • Either an "ESR" repository that contains the standard Moogsoft AIOps RPMs and ancillary packages (Tomcat, RabbitMQ, JDK etc) for an ESR release

    ESR: <date/timestamp>-MoogsoftESR_<version>_offline_repo.tar.gz
    Example: 2016-05-30-1464646759-MoogsoftESR_6.5.0_offline_repo.tar.gz

    OR

    An "EDGE" repository contains the standard  Moogsoft AIOps RPMs and ancillary packages (Tomcat, RabbitMQ, JDK etc) for an EDGE release

    EDGE: <date/timestamp>-MoogsoftEDGE_<version>_offline_repo.tar.gz
    Example: 2016-07-25-1469453562-MoogsoftEDGE_6.5.0_offline_repo.tar.gz

Download Installation Files

Before you can set up the local yum repositories, you need to download installation files from a machine connected to the internet. Then copy the installation files to a directory on the target system. The examples use /home for the installation file directory.

  1. Use the links from Moogsoft support to download the Moogsoft AIOps installation files on an internet-connected host and copy them to the target offline system.

  2. Download the MySQL-Community packages on an internet-connected host and copy them to the target offline system.

    For example on RHEL6:

    wget https://repo.mysql.com/yum/mysql-5.7-community/el/6/x86_64/mysql-community-libs-5.7.22-1.el6.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/6/x86_64/mysql-community-libs-compat-5.7.22-1.el6.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/6/x86_64/mysql-community-server-5.7.22-1.el6.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/6/x86_64/mysql-community-common-5.7.22-1.el6.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/6/x86_64/mysql-community-client-5.7.22-1.el6.x86_64.rpm

    Or on RHEL/CentOS7:

    wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-libs-5.7.22-1.el7.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.22-1.el7.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.22-1.el7.x86_64.rpm
    wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.22-1.el7.x86_64.rpm
  3. Download the mysql-connector-5.1.45 jar file:

    wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.tar.gz

Prepare the Local yum Repositories

The following procedure describes how to create local yum repositories to house the installation packages for Moogsoft AIOps that you downloaded. If you are running a distributed installation, follow this procedure on each machine where you run Moogsoft components.

  1. Create directories that will house the repositories. For example:

    sudo mkdir -p /media/localRPM/BASE/
    
    sudo mkdir -p /media/localRPM/ESR/

    Or for an EDGE repo:

    sudo mkdir -p /media/localRPM/EDGE/
  2. Extract the two packages into separate directories. For example, for an ESR on RHEL6:

    tar xzf /home/2018-06-19-*-MoogsoftBASE6_offline_repo.tar.gz -C /media/localRPM/BASE/
    
    tar xzf /home/2018-06-19-*-MoogsoftESR_6.5.0_offline_repo.tar.gz -C /media/localRPM/ESR/

    Or for an EDGE repo:

    tar xzf /home/2018-06-19-*-MoogsoftEDGE_6.5.0_offline_repo.tar.gz -C /media/localRPM/EDGE/
  3. Move the existing /etc/yum.repos.d . directory to create a backup:

    mv /etc/yum.repos.d /etc/yum.repos.d-backup
  4. Creating an empty /etc/yum.repos.d directory

     mkdir /etc/yum.repos.d
  5. Create a local.repo for yum:

    vi /etc/yum.repos.d/local.repo
  6. Edit the contents of local.repo . Verify the path for the base and for the baseurl points to the directories you created.

    [BASE]
    name=MoogCentOS-$releasever - MoogMaxRPM
    baseurl=file:///media/localRPM/BASE/RHEL
    gpgcheck=0
    enabled=1
    [ESR]
    name=MoogCentOS-$releasever - MoogMaxRPM
    baseurl=file:///media/localRPM/ESR/RHEL
    gpgcheck=0
    enabled=1

    Or for and EDGE:

    [EDGE]
    name=MoogCentOS-$releasever - MoogMaxRPM
    baseurl=file:///media/localRPM/EDGE/RHEL
    gpgcheck=0
    enabled=1
  7. Clean the yum cache to remove cached files from any enabled repository:

    yum clean all 
  8. Verify yum detects the the newly created local repositories:

    yum info "moogsoft-*"
    Available Packages
    Arch        : x86_64
    Version     : 6.5.0
    Release     : 8
    Size        : 76 M
    Repo        : ESR
    Summary     : Algorithmic Intelligence for IT Operations
    URL         : https://www.moogsoft.com
    License     : Moogsoft EULA - https://www.moogsoft.com/eula
    Description : Moogsoft AIOps (6.5.0) - Build: 142 - (Revision:
                : 7a2df5e47e10ee17ab646bf5d06f3b31437e3bac)

    The results should include the following packages:

    Name        : moogsoft-db
    Name        : moogsoft-integrations
    Name        : moogsoft-integrations-ui
    Name        : moogsoft-mooms
    Name        : moogsoft-search
    Name        : moogsoft-server
    Name        : moogsoft-ui
    Name        : moogsoft-utils
    Name        : moogsoft-common
  9. Update the system if needed. Create an exclusion list if you prefer to keep certain packages away from update:

    yum update
  10. Install the MySQL RPMs:

    yum install mysql-community-*5.7.22*.rpm

    If yum reports errors regarding mariadb, replace mariadb with the equivalent mysql package. The following script removes mariadb-server and replaces it with mysql-community-server:

    echo "remove mariadb-server" >> /tmp/mysql.libs
    echo "install mysql-community-libs-compat-5.7.22" >> /tmp/mysql.libs
    echo "install mysql-community-server-5.7.22" >> /tmp/mysql.libs
    echo "run" >> /tmp/mysql.libs
    cat /tmp/mysql.libs | yum shell -y

Your local yum repos are ready. Now you can proceed with your offline install or upgrade. See the following topics: