Local setup of CEP

One of great advantages of CEP is that developers can run CEP on their machine. This enables developers to have same platform to develop and test their applicaion as that would run on production.

Pre-requisites

To install CEP on local machine, below pre-requisites should be made,

Windows/Linux machine with,

  1. >= 8GB RAM
  2. >= 30GB HDD
  3. Internet access with download privileges
  4. Vagrant and VirtualBox installed

Installation steps

  1. Get Vagrantfile from here
  2. Copy the Vagrantfile in a local disk where there is enough space (> 30GB).
  3. Run vagrant up command to spin up three nodes for the cluster. It might take multiple retries to get the nodes up.
vagrant up
  1. Once the nodes are up, open virtualbox and open each box. Login using credential vagrant/vagrant and run the following commands,
sudo vi /etc/ssh/sshd config

The PasswordAuthentication flag should be changed to “yes”. Then you need to restart sshd service,

sudo service sshd restart

You can get the ip address of the boxes using the following command,

ip a

Local IPs generally starts with 172.*.*.*/192.*.*.* 5. Once ssh setup is done, you can ssh into each boxes ip adress/credentials. 6. Identify a box to be control machine from where CEP installation scripts are to be run and install proxy (if required) in yum config. Follow guide 7. Install epel-release, ansible, git on control machine.

yum install -y epel-release
yum install -y ansible git
  1. Now the initial setup is done, go through getting started guide in CEP to setup CEP on your local machine. Make note you might opt out of installing graylog,gitlab in local setup as these requires good amount of memory/cpu.
Table of contents: