Install Stratos in One Go

Apache Stratos 4.0.0 installation process has series of manual steps; installing prerequisites, downloading source and binary packages, installing and configuring puppet master, configuring Stratos products, etc. I think it is a waste of time to do all these steps over an over again when setting up Stratos development or demo environments.

As a solution to this, I implemented a script to automate the complete Stratos installation process by filling the gaps in between:


  • An Ubuntu 12.04 64bit host
  • Git client

Steps to follow:

  1. Take a git clone of the below git repository:
git clone
  1. Update with host private IP and IaaS configuration parameters:
  1. Grant executable access:
chmod +x
  1. Run with root permissions:
sudo ./

This will download and install Stratos source/binary packages, Java, MySQL connector, ActiveMQ, puppet master and configure all of them with default configuration settings. Once the process is complete it will start MySQL server, Active MQ and Stratos.

Stratos dashboard URL could be found at the below link:


In addition to Stratos installation we need to create a base cartridge image. This will act as the base image for all the cartridges. To start with spawn another instance of Ubuntu 12.04 64bit image and run the below script with root permissions. In this process we do not need to do any configurations, it will download and install all prerequisites and puppet agent:

cd /tmp
chmod +x
sudo ./

During this process it will prompt you to enter the puppet master IP, puppet master hostname, and service name, for those please enter the following:

Puppet master IP: IP of the Stratos host
Puppet master hostname:
Service name: default

Once cartridge creation process is completed create an image from the running VM instance. Thereafter find the image id of the created image and use it as the cartridge image id in each cartridge definition.

Imesh Gunaratne

Read more posts by this author.

Colombo, LK