Installs the sonarqube system

Dario Sestero



6,262 latest version

5.0 quality score

Version information

  • 1.0.1 (latest)
  • 1.0.0
released Jul 13th 2016
This version is compatible with:
  • Puppet Enterprise 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.0.0
  • Ubuntu

Start using this module

Tags: sonarqube


dsestero/sonarqube — version 1.0.1 Jul 13th 2016


####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with sonarqube
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module


This is the sonarqube module. It deliver SonarQube (previously known as Sonar), the Open Source platform to manage code quality (see

##Module Description

The module creates a local sonarqube mysql db, adds the SonarQube Debian/Ubuntu repository, installs the software, configures logs and db parameters, and enable the service to start at boot.


###What sonarqube affects

  • installs packages openjdk-7-jdk, mysql-server and mysql-client if not yet installed

  • creates a new sonarqube db (access with sonarqube/sonarqube) to be used by the SonarQube software to record the quality metrics

  • adds to the system the Debian/Ubuntu repository for SonarQube distribution (creates a file sonarqube.list in /etc/apt/sources.list.d)

  • installs the package sonar from the newly configured repo

  • creates /var/log/sonar directory owned by sonar:adm

  • link /opt/sonar/logs to the log directory created under /var

  • configures the software by providing username, password, url and driver class name to access the db

  • enable a new service sonar to start at boot and listen for http request on port 9000.

###Setup Requirements

This modules requires the following other modules to be installed:

  • dsestero/java to install a suitable java development environment

  • puppetlabs/mysql to install mysql db

  • puppetlabs/apt in order to add the SonarQube repository

  • puppetlabs/stdlib to have additional resource type like file_line, useful for configuring the software

###Beginning with sonarqube

To install sonarqube as a service with default configuration, it is possible to use a declaration as the following:

include sonarqube


At the moment there are no customizations.


###Public Classes

###Private Classes

###sonarqube::sonarqube Installs, configure and sets up a sonarqube service.


At the moment the module targets only OpenJDK on Ubuntu platforms. Specifically, it is tested only on Ubuntu 12.04 64 bit distributions, although probably it will work also on more recent versions and different architectures.


If you need some feature please send me a (pull) request or send me an email at: dsestero 'at' gmail 'dot' com.