Skip to content

geerlingguy/ansible-role-sonar-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: SonarQube Runner

Build Status

DEPRECATED: This role is no longer actively maintained. It may still work, but I have marked it as 'deprecated' on Ansible Galaxy, and recommend you find a new role to replace it, or fork it and use your fork.

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

The role is currently configured to support SonarQube installations using MySQL as a database backend.

Requirements

None.

Role Variables

Available variables are listed below, along with default values:

workspace: /root

Directory where downloaded files will be temporarily stored.

sonar_runner_download_url: https://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.3/sonar-runner-dist-2.3.zip
sonar_runner_download_file: sonar-runner-dist-2.3.zip
sonar_runner_expanded_file: sonar-runner-2.3

URL and filenames for sonar distribution/version.

sonar_protocol: http
sonar_host: localhost
sonar_port: 9000

The SonarQube installation to which sonar-runner will connect.

sonar_login: ""
sonar_password: ""

The SonarQube installation login (if configured).

sonar_mysql_host: localhost
sonar_mysql_port: 3306
sonar_mysql_database: sonar
sonar_mysql_user: sonar
sonar_mysql_password: sonar

SonarQube MySQL database connection details.

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - { role: geerlingguy.sonar-runner }

License

MIT / BSD

Author Information

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