Page tree
Skip to end of metadata
Go to start of metadata

Carry out the following steps to prepare a RHEL7/CentOS 7 server for installation of Moogsoft AIOps.

StepAction
1

Install the EPEL yum repository (Extra Packages for Enterprise Linux: EPEL):

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Verify the creation of file /etc/yum.repos.d/epel.repo

2

Install the "el7" MySQL Community yum repository:

yum -y install http://repo.mysql.com/mysql57-community-release-el7.rpm

Verify the creation of file /etc/yum.repos.d/mysql-community.repo

3

Install the erlang el7 package built by RabbitMQ:

yum -y install https://github.com/rabbitmq/erlang-rpm/releases/download/v20.1.7/erlang-20.1.7-1.el7.centos.x86_64.rpm

The file is available from this page if needed: https://github.com/rabbitmq/erlang-rpm/releases/tag/v20.1.7

4

Install the RabbitMQ yum repository:


curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

Verify the creation of file /etc/yum.repos.d/rabbitmq_rabbitmq-server.repo

5

Install the ElasticSearch public signing key:

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Create the ElasticSearch yum repository by creating file /etc/yum.repos.d/elasticsearch.repo with contents:

[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
6

Install the nginx yum repo by creating a script (e.g.: create_nginx_repo.sh) containing the following contents and then executing it. e.g.: bash create_nginx_repo.sh

#!/bin/bash

echo '[nginx]' > /etc/yum.repos.d/nginx.repo
echo 'name=nginx repo' >> /etc/yum.repos.d/nginx.repo
echo 'baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/' >> /etc/yum.repos.d/nginx.repo
echo 'gpgcheck=0' >> /etc/yum.repos.d/nginx.repo
echo 'enabled=1' >> /etc/yum.repos.d/nginx.repo

OS_VERSION=$(cat /etc/system-release)
case "$OS_VERSION" in
	CentOS*release\ 6* )
			sed -i -e 's/OS/centos/' -e 's/OSRELEASE/6/' /etc/yum.repos.d/nginx.repo;;
	CentOS*release\ 7* )
			sed -i -e 's/OS/centos/' -e 's/OSRELEASE/7/' /etc/yum.repos.d/nginx.repo;;
	Red\ Hat*release\ 6* )
			sed -i -e 's/OS/rhel/' -e 's/OSRELEASE/6/' /etc/yum.repos.d/nginx.repo;;
	Red\ Hat*release\ 7* )
			sed -i -e 's/OS/rhel/' -e 's/OSRELEASE/7/' /etc/yum.repos.d/nginx.repo;;
esac
7

Ensure the nss packages are up to date by running:

yum -y update nss

If these packages are already up to date then this command will exit without action

8

Create the Moogsoft yum repository by creating file /etc/yum.repos.d/moogsoft-aiops.repo with contents:

[moogsoft-aiops]
name=moogsoft-aiops-latest
baseurl=https://<login>:<password>@speedy.moogsoft.com/repo/aiops/esr
enabled=1
gpgcheck=0
sslverify=0

Access to the Moogsoft yum repository is restricted and requires a <login> and <password>

Please contact support@moogsoft.com regarding access

9

Install the tomcat-native package using the command below. Please provide your 'speedy' yum credentials to complete the command:

yum -y install https://<login>:<password>@speedy.moogsoft.com/offline/7/tomcat-native-1.1.34-1.el7.x86_64.rpm
10

Set SELinux to permissive mode or disable completely. For example to set SELinux to permissive mode:

setenforce 0

If you want to disable SELinux at boot time, you can edit the file /etc/sysconfig/selinux.


Next step: Single Host Installation (RPM/root)