Overview

In this section, we will configure the virtual machines and install, and configure the environment. In the other other sections we will play with the environment.

We will use:

Vagrant - For Virtualization

Ubuntu - For Operation System

2nd Quandrant - For Rempgr

Virtual Environment Config

To configure the Virtual Environment, we will use Vagrant and Ubuntu machines. You can configure the following vagrant file:

Vagrant Config

The vagrant file is the following:

Vagrant file

Once the machines are up, we can start with the installation. Bare in mind that this vagrant will automatically configure the IPs as well, but will not configure /etc/hosts. Something which we will do now.

Server Config

For the servers we have to:

Configure /etc/hosts

Configure 2nd Quadrant Repository

Install 2nd Quadrant Packages

So, let's get going.

Modify /etc/hosts

That is pretty trivial, just add the IPs and the hostnames to /etc/hosts:

Hosts

That will allow, the hosts to see and ping each other.

Then we can configure the repositories:

Configure Repositories

I decided to use 2nd quadrant packages, as they are the ones I use for work as well :) First thing first, we have to update our repos and pull the latest metadata from them.

Update repos

Then we can proceed with installation of PostgreSQL

Install PostgreSQL

Do this on both machines: server1 and server2

Then we can proceed with adding the repo for REPMGR

Add REPMGR Repo