Moogsoft Docs

Pre-Install Moogsoft AIOps - Offline RPMs

If you cannot use Yum to connect to package repositories outside your network from the machines where you are installing Moogsoft AIOps, you can download tarball packages of the repositories to run an offline installation. The offline repository distributions include all required packages to install Moogsoft AIOps on a 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
  • Ensure you have root access to the system where you are installing Moogsoft AIOps.

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 RHEL/CentOS 7. The base package follows the following naming convention:

    <date/timestamp>-MoogsoftBASE7_offline_repo.tar.gz
    Example: 2018-09-26-1537962719-MoogsoftBASE7_offline_repo.tar.gz
  • An "ESR" repository that contains the standard Moogsoft AIOps RPMs and ancillary packages (Tomcat, RabbitMQ, JRE etc)

    ESR: <date/timestamp>-MoogsoftESR_<version>_offline_repo.tar.gz
    Example: 2018-09-26-1537962719-MoogsoftESR_7.2.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. Download the 'ESR' and 'BASE' RPM tarballs from the 'speedy' server using the following two links in internet browser on an internet-connected host. Provide your 'speedy' access credentials when prompted by the browser.

    1. https://speedy.moogsoft.com/offline/aiops/2019-04-24-1556146392-MoogsoftBASE7_offline_repo.tar

    2. https://speedy.moogsoft.com/offline/aiops/2019-04-24-1556146392-MoogsoftESR_7.2.0_offline_repo.tar

  2. Copy the two downloaded tarballs to the target offline system.

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

    For example on RHEL7/CentOS7:

    curl -L -O https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-libs-5.7.22-1.el7.x86_64.rpm
    curl -L -O 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
    curl -L -O https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.22-1.el7.x86_64.rpm
    curl -L -O https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.22-1.el7.x86_64.rpm
    curl -L -O https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.22-1.el7.x86_64.rpm
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 AIOps components.

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

    sudo mkdir -p /media/localRPM/BASE/
    
    sudo mkdir -p /media/localRPM/ESR/
  2. Extract the two packages into separate directories. For example:

    tar xzf *-MoogsoftBASE7_offline_repo.tar.gz -C /media/localRPM/BASE/
    
    tar xzf *-MoogsoftESR_7.2.0_offline_repo.tar.gz -C /media/localRPM/ESR/
    
  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 - MoogRPM
    baseurl=file:///media/localRPM/BASE/RHEL
    gpgcheck=0
    enabled=1
    [ESR]
    name=MoogCentOS-$releasever - MoogRPM
    baseurl=file:///media/localRPM/ESR/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     : 7.2.0
    Release     : 8
    Size        : 76 M
    Repo        : ESR
    Summary     : Algorithmic Intelligence for IT Operations
    URL         : https://www.moogsoft.com
    License     : Proprietary
    Description : Moogsoft AIOps (7.2.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 for more information: