/vagrant-cluster-centos

A CentOS 7 cluster via Vagrant

Primary LanguageShellMIT LicenseMIT

CentOS 7 cluster via Vagrant

This repository provides a template Vagrantfile to create a CentOS 7 cluster using the VirtualBox software hypervisor. After setup is complete you will have three CentOS virtual machines running on your local machine.

Please be aware that the standard memory per instance is set to 3072 MB, and the cpu cores to 2. That means by default you'll need a machine capable to free up to 6 cpu cores and 9216 MB memory.

Streamlined setup

Install dependencies

Clone this project and get it running!

git clone https://github.com/mesoshq/vagrant-cluster-centos/
cd vagrant-cluster-centos

Startup and SSH

The VirtualBox provider is the default Vagrant provider. Use this if you are unsure.

vagrant up
vagrant ssh centos-01

Description

vagrant up triggers Vagrant to download the centos/7 box (if necessary) and (re)launch the instances

vagrant ssh <hostname> connects you to the virtual machine. The hostnames are centos-01 to centos-03, the IPs are from 172.17.11.101 to 172.17.11.103.

Configuration is stored in the directory so you can always return to this machine by executing vagrant ssh from the directory where the Vagrantfile was located.

mesosctl

You can use the provided mesosctl.yml file to load the cluster configuration like this:

mesosctl $ config load /path/to/mesosctl.yml