This is an old revision of the document!
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
C:\Virtual Box\REPMGR>vagrant init A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. C:\Virtual Box\REPMGR>vagrant status Current machine states: server1 not created (virtualbox) server2 not created (virtualbox) This environment represents multiple VMs. The VMs are all listed above with their current state. For more information about a specific VM, run `vagrant status NAME`. C:\Virtual Box\REPMGR>vagrant up Bringing machine 'server1' up with 'virtualbox' provider... Bringing machine 'server2' up with 'virtualbox' provider... ==> server1: Box 'consumerlab/ubuntu-server-16-04-LTS' could not be found. Attempting to find and install... server1: Box Provider: virtualbox server1: Box Version: >= 0 ==> server1: Loading metadata for box 'consumerlab/ubuntu-server-16-04-LTS' server1: URL: https://vagrantcloud.com/consumerlab/ubuntu-server-16-04-LTS ==> server1: Adding box 'consumerlab/ubuntu-server-16-04-LTS' (v1.0.2) for provider: virtualbox server1: Downloading: https://vagrantcloud.com/consumerlab/boxes/ubuntu-server-16-04-LTS/versions/1.0.2/providers/virtualbox.box ***************************************
The vagrant file is the following:
Vagrant file
Vagrant.configure("2") do |config| (1..2).each do |n| config.vm.define "server#{n}" do |define| define.vm.box = "consumerlab/ubuntu-server-16-04-LTS" define.ssh.insert_key = false define.vm.hostname = "server#{n}" define.vm.network :private_network, ip: "10.0.15.2#{n}" define.vm.provider "virtualbox" do |node| node.name = "server#{n}" end end end end
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
10.0.15.21 server1 10.0.15.21 server2
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 :)
Install repo