cancel
Showing results for 
Search instead for 
Did you mean: 

EPAS 11 on Centos 7 - Using RPMs on Disconnected Networks

EDB Team Member

This article will show you how to quickly set up an epas11 cluster on a disconnected network. This is a good practice to set up sandbox and dev boxes to play with epas11. In production environments, we recommend working with your System Administrator to set up Centos repositories correctly so that you will get most up to date Linux packages. 

 

Assumptions: 

You will have two VMs available with the first one connected to the internet which will be configured as the YUM_SERVER and accessible from the second server while the second one disconnected to the internet. However, the second server can access to the first server (YUM_SERVER).  


#First set up the Yum Server that is connected to the internet
##In my example this ip address is 192.168.1.130 and this server is accessible from the disconnected server. Please make sure that a static IP address is

# On this server no EDB software will be installed. We will only set EDB repository so that we can point this repository for the disconnected database server

 

yum -y install createrepo rsync httpd

systemctl enable httpd
systemctl start httpd

# Install the new EDB Repo
#
yum install -y http://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm

#

#Disable firewalld
systemctl stop firewalld
systemctl disable firewalld

 

# Configure the edb.repo username/password
#

#
# Enable EPAS 10, dependencies, and tools repositories
#
export YUM_USER= #####Please provide your username for the edb yum repo
export YUM_PASSWORD=  ###Please provide your password for the edb yum repo

# Configure the edb.repo username/password
#
#
# Enable EPAS 10, dependencies, and tools repositories
#

sed -i "s/<username>:<password>/$YUM_USER:$YUM_PASSWORD/g" /etc/yum.repos.d/edb.repo
sed -i "\/edbas11/,/gpgcheck/ s/enabled=0/enabled=1/" /etc/yum.repos.d/edb.repo
sed -i "\/enterprisedb-dependencies/,/gpgcheck/ s/enabled=0/enabled=1/" /etc/yum.repos.d/edb.repo
sed -i "\/enterprisedb-tools/,/gpgcheck/ s/enabled=0/enabled=1/" /etc/yum.repos.d/edb.repo
#


mkdir -p /var/www/html/repos/centos/7/6/
cd /var/www/html/repos/centos/7/6/
yum -y install yum-utils

repotrack edb-as11-server ppas-xdb edb-bart edb-jdbc edb-pem-agent edb-pgadmin4 edb-efm34 epel-release edb-as11-server-core

createrepo /var/www/html/repos/centos/7/6/

##Update the repository's databases if needed

#createrepo --update /var/www/html/repos/centos/7/6/
##Try the url to see if you can get to it http://$YUM_SERVER/repos/

##Disable the SELinux on yum server otherwise it will have issues accessing files through http
sudo setenforce 0
cp /etc/selinux/config /etc/selinux/config.orig
sed -i s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config
grep SELINUX /etc/selinux/config |grep -v ^#

 

# 1. Setup environment on the disconnected server

export YUM_SERVER=192.168.1.130


###STEP 2 on the Disconnected Server
##
cd /etc/yum.repos.d; for i in $(ls *.repo); do mv $i $i.orig; done
/etc/yum.repos.d/myrepo.repo
echo "[repo_server-repo]" > /etc/yum.repos.d/myrepo.repo
echo "name=My RPM System Package Repo" >> /etc/yum.repos.d/myrepo.repo
echo "baseurl=http://$YUM_SERVER/repos/centos/7/6/" >> /etc/yum.repos.d/myrepo.repo
echo "enabled=1" >> /etc/yum.repos.d/myrepo.repo
echo "gpgcheck=0" >> /etc/yum.repos.d/myrepo.repo

cat /etc/yum.repos.d/myrepo.repo


yum repolist shut
yum info perl

# Install
yum install -y edb-as11-server-core ppas-xdb edb-bart edb-jdbc edb-pem-agent edb-pgadmin4 edb-efm34

# Run this command to see where epas 11 was installed
ls /usr/edb/as11

 

 

##Congratulations! You have successfully installed epas11 on a disconnected server