Forge Home


Puppet module for managing Apache Cloudstack


8,037 latest version

3.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.3.0 (latest)
released May 16th 2015
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'Lavaburn-cloudstack', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add Lavaburn-cloudstack
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install Lavaburn-cloudstack --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



Lavaburn/cloudstack — version 0.3.0 May 16th 2015

Puppet Module for Apache Cloudstack

####Table of Contents

  1. Overview
  2. Dependencies
  3. Usage
  4. Reference
  5. Compatibility
  6. Testing
  7. [Copyright] (#copyright)


This module installs and sets up Apache Cloudstack for first use. It also contains custom types to manage Cloudstack using the REST API


CloudStack Infrastructure depends on a working NTP server. Ensure NTP is installed and set up before calling cloudstack class.


  • puppetlabs/stdlib (REQUIRED)
  • puppetlabs/mysql (Optional)
  • haraldsk/nfs (Optional)
  • maestrodev/wget (Optional)
  • puppetlabs/apt (Optional)
  • puppetlabs/concat (Optional)
  • If you want to set up MySQL config:
    - include 'mysql::server'   [puppetlabs/mysql]
  • If you want to set up NFS:
    - include 'nfs::server'     [haraldsk/nfs]
  • If you need XenServer support:
    - include 'wget'            [maestrodev/wget]
  • If you're installing on Debian:
    • include 'apt' [puppetlabs/apt]
  • If you're installing the master server: [puppetlabs/concat]
  • If you manage Cloudstack without installing it: Package[cloudstack_mgmt_package_name] should exist

Notes: Due to incompatibility issues on Ubuntu 14.04, I use a different version of haraldsk/nfs: On Github: haw-hh-ai-lab/nfs [Branch = fix_debian_service_cycle_squashed]


It is highly recommended to put secret keys in Hiera-eyaml and use automatic parameter lookup [][]

Make sure to include all dependencies as per above.

Also see the examples/profile.pp file for an example on how to set up dependencies.

Single Server Setup

class { 'cloudstack': hostname_cloudstack => '',

database_server_key           => 'notsecretnow', # (*)
database_database_key         => 'notsecretnow', # (*)
database_password             => 'notsecretnow', # (*)

hypervisor_support            => ['xenserver', 'kvm', 'lxc'],
cloudstack_server_count       => 1,


3 Server Setup

Cloudstack - MySQL only

class { 'cloudstack': cloudstack_server => false, nfs_server => false,

cloudstack_server_count       => 2,


Cloudstack - NFS only

class { 'cloudstack': cloudstack_server => false, mysql_server => false, }

Cloudstack - Cloudstack Server only

class { 'cloudstack': nfs_server => false, mysql_server => false,

hostname_cloudstack           => '',
hostname_database             => '',
hostname_nfs                  => '',

database_server_key           => 'notsecretnow', # (*)
database_database_key         => 'notsecretnow', # (*)
database_password             => 'notsecretnow', # (*)

hypervisor_support            => ['xenserver', 'kvm', 'lxc'],


Cloudstack - Second Cloudstack Server

class { 'cloudstack': nfs_server => false, mysql_server => false,

hostname_cloudstack           => '',
hostname_database             => '',
hostname_nfs                  => '',

database_server_key           => 'notsecretnow', # (*)
database_database_key         => 'notsecretnow', # (*)
database_password             => 'notsecretnow', # (*)

cloudstack_master             => false,



You can add any number of Cloudstack servers (see Usage/Cloudstack - Second Cloudstack Server)

  • Make sure to change the cloudstack_server_count on the MySQL Server

  • Make sure to set cloudstack_master to false

    For MySQL HA, refer to MySQL documentation


You should only use the 'cloudstack' class.

There are many custom types available. Documentation Pending (automatic RDOC?)


This module has been tested with:

  • Puppet 3.7.3 - Ruby 1.9.3 - Ubuntu 14.04.1



  • Ruby
  • Bundler (gem install bundler)

If you wish to test this module yourself:

  1. bundle
  2. rake test

For running acceptance testing (beaker/vagrant):

  1. rake acceptance (TODO - DEPENDENCIES)


Copyright 2014 Nicolas Truyens

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.