The mmp-paas project provides the capability to provision the various technologies that make up the PaaS platform in an automated manner using Packer, Vagrant and Ansible. Support is provided for the Virtualbox, VMware Fusion and VMware vSphere virtualisation platforms.
The config.yml file defines all the servers that make up the PaaS platform and the Ansible configuration that should be applied to these servers. The profiles section at the top of the config.yml file defines collections of servers that should be provisioned as a related unit. This allows a portion of the PaaS platform to be deployed using commands similar to the following:
vagrant --profile=<PROFILE NAME> up --provider=<PROVIDER NAME> --no-parallel
or
vagrant --profile=<PROFILE NAME> destroy --force
e.g.
vagrant --profile=paas_minimal up --provider=virtualbox --no-parallel
vagrant --profile=developer up --provider=vmware_fusion --no-parallel
or
vagrant --profile=paas_minimal destroy --force
vagrant --profile=developer destroy --force
You can connect to a server using SSH with the username vagrant and the password vagrant. This user is able to su to the root user.
-
Download and install VirtualBox from https://virtualbox.org.
-
Configure the VirtualBox Host-Only Ethernet Adapter as follows:
Adapter:
IPv4 Address: 192.168.100.1
IPv4 Network Mask: 255.255.255.0
DHCP Server:
Enable Server: True
Server Address: 192.168.56.100
Server Mask: 255.255.255.0
Lower Address Bound: 192.168.56.101
Upper Address Bound: 192.168.56.254
-
Install Git e.g. on CentOS execute yum -y install git.
-
Download and install Packer from https://packer.io.
-
Download and install Vagrant from https://www.vagrantup.com.
-
Open a Bash terminal.
-
Clone the https://github.com/marcusportmann/mmp-packer.git project.
-
Execute the build-virtualbox.sh script under the mmp-packer directory.
-
Follow the instructions on http://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine to install Ansible.
-
Clone the https://github.com/marcusportmann/mmp-paas.git project.
-
Execute the following command under the mmp-paas directory:
vagrant --profile=paas_minimal up --provider=virtualbox --no-parallel
- Create the Ceph OSD cluster on the first Ceph monitor node e.g. 192.168.100.58 by executing the following command as the root user:
ceph osd pool create docker 128