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.
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
# # 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
#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
###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