Role Detail

geerlingguy.sonar

SonarQube for Linux
Downloads
607
Type Ansible
Minimum Ansible Version 1.8
Installation $ ansible-galaxy install geerlingguy.sonar
Tags
development
monitoring
Last Commit 2017-05-15 16:26:04 PM UTC
Last Imported 2017-11-06 07:58:07 AM UTC
Version History
Version Release Date
1.4.0 2017-05-15 16:26:04 PM
1.3.0 2017-04-03 16:47:04 PM
1.2.1 2016-07-02 04:24:04 AM
1.2.0 2016-03-02 16:21:04 PM
1.1.1 2015-10-02 03:31:03 AM
1.1.0 2015-04-29 15:29:03 PM
1.0.2 2014-06-18 20:41:08 PM
1.0.1 2014-06-18 17:42:05 PM
1.0.0 2014-06-18 17:25:05 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 5
EL 6
EL 7
Ubuntu artful
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Ubuntu zesty
Last 10 Imports
Completed Status
2017-11-06 07:58:07 AM UTC SUCCESS
2017-11-06 06:54:06 AM UTC SUCCESS
2017-11-03 18:34:06 PM UTC SUCCESS
2017-08-14 20:19:08 PM UTC SUCCESS
2017-08-14 19:45:07 PM UTC SUCCESS
2017-08-14 19:34:07 PM UTC SUCCESS
2017-07-15 19:10:07 PM UTC SUCCESS
2017-05-23 15:01:03 PM UTC SUCCESS
2017-05-23 12:26:12 PM UTC SUCCESS
2017-05-23 12:17:12 PM UTC SUCCESS

Ansible Role: SonarQube

Build Status

An Ansible Role that installs SonarQube on RedHat/CentOS and Debian/Ubuntu Linux servers.

Requirements

Requires the unzip utility to be installed on the server. Also, different SonarQube versions require different minimum versions of Java:

  • SonarQube 5.0-5.5 requires Java 1.7+
  • SonarQube 5.6+ requires Java 1.8+

Finally, recent versions of SonarQube also require MySQL 5.6 or later.

Role Variables

Available variables are listed below, along with default values:

workspace: /root

Directory where downloaded files will be temporarily stored.

sonar_download_validate_certs: yes

Controls whether to validate certificates when downloading SonarQube.

sonar_download_url: http://dist.sonar.codehaus.org/sonarqube-4.5.4.zip
sonar_version_directory: sonarqube-4.5.4

The URL from which SonarQube will be downloaded, and the resulting directory name (should match the download archive, without the archive extension).

sonar_web_context: ''

The value of sonar.web.context. Setting this to something like /sonar allows you to set the context where Sonar can be accessed (e.g. hostname/sonar instead of hostname).

sonar_mysql_username: sonar
sonar_mysql_password: sonar

sonar_mysql_host: localhost
sonar_mysql_port: "3306"
sonar_mysql_database: sonar

sonar_mysql_allowed_hosts:
  - 127.0.0.1
  - ::1
  - localhost

JDBC settings for a connection to a MySQL database. Defaults presume the database resides on localhost and is only accessible on the SonarQube server itself.

Dependencies

  • geerlingguy.java
  • geerlingguy.mysql

Example Playbook

- hosts: all
  roles:
    - geerlingguy.sonar

Using the defaults, you can view the SonarQube home at http://localhost:9000/ (default System administrator credentials are admin/admin).

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

None