sonarqube
: Install and configure SonarQube and additional componentssonarqube::scanner
: Install and configure SonarQube Scanner
sonarqube::config
: Configure SonarQubesonarqube::install
: Install SonarQube packagesonarqube::scanner::config
: Configuration of SonarQube Scannersonarqube::scanner::install
: Installation of SonarQube Scannersonarqube::service
: Setup SonarQube service
sonarqube::move_to_home
: Symlink a folder to SonarQube's installation directorysonarqube::plugin
: Manage SonarQube plugins: download, install, remove.
Install and configure SonarQube and additional components
The following parameters are available in the sonarqube
class:
arch
ce_java_opts
ce_workercount
config
context_path
crowd
download_dir
download_url
edition
group
home
host
http_proxy
https
installroot
jdbc
ldap
log_folder
distribution_name
pam
plugin_tmpdir
port
portajp
profile
search_host
search_java_opts
search_port
service
sso
manage_service
updatecenter
pidfile
user
user_system
version
web_java_opts
search_java_additional_opts
helper_dir
system_passcode
Data type: String[1]
Specifies the architecture of the installation archive that should be downloaded. Default: Automatically selected depending on the OS architecture.
Data type: Optional[String[1]]
Optional JVM options for the Compute Engine.
Default value: undef
Data type: Optional[Integer]
The number of workers in the Compute Engine.
Default value: undef
Data type: Optional[String[1]]
Allow to specify an alternative SonarQube configuration, effectively
replacing all contens of sonar.properies
.
Default value: undef
Data type: String[1]
Specifies the context path for the application.
Data type: Hash
Specifies whether the Crowd plugin should be enabled.
Default: false
Data type: Stdlib::Absolutepath
The directory where the SonarQube installation archive should be stored.
Data type: String[1]
The URL from which the SonarQube installation archive should be downloaded.
Data type: String[1]
Specifies the edition of SonarQube that should be installed.
Default: community
Data type: String[1]
The group for the SonarQube application.
Data type: String[1]
SonarQube's data directory.
Data type: Optional[String[1]]
Specifies the listen address for SonarQube.
Default value: undef
Data type: Hash
Specifies the HTTP Proxy that should be used for SonarQube's Update Center or connection to devops platforms.
Data type: Hash
Specifies the required configuration to enable HTTPS support.
Data type: Stdlib::Absolutepath
Specifies the base directory where SonarQube should be installed. A new subdirectory for each version of SonarQube will be created.
Data type: Hash
Specifies the database configuration for SonarQube.
Data type: Hash
Specifies the required configuration to enable LDAP authentication.
Data type: Stdlib::Absolutepath
Specifies the log directory for SonarQube.
Data type: String[1]
Specifies the basename of the SonarQube archive.
Data type: Hash
Specifies the required configuration to enable PAM authentication.
Data type: Stdlib::Absolutepath
Specifies the temporary download directory for plugin files. This defaults
to /tmp
. Changing it to something else would eleminate the need to
download plugin files again after /tmp
was purged.
Data type: Variant[Stdlib::Port, Integer[-1, 0]]
Specifies the TCP port for SonarQube.
Data type: Variant[Stdlib::Port, Integer[-1, 0]]
Specifies the port to use for the AJP communication protocol.
Data type: Boolean
Specifies wether profiling should be enabled for SonarQube.
Data type: String[1]
Specifies the IP/hostname of the Elasticsearch server.
Data type: Optional[String[1]]
Optional JVM options for the Elasticsearch server.
Default value: undef
Data type: Variant[Stdlib::Port, Integer[-1, 0]]
Specifies the TCP port of the Elasticsearch server.
Data type: String[1]
Specifies the name of the SonarQube system service.
Data type: Optional[Hash]
Enable authentication using HTTP headers.
Default value: undef
Data type: Boolean
If this module should create and mange the service configuration. Defaults to true
Data type: Boolean
Specifies whether to enable the Update Center.
Data type: String[1]
Specifies the name of the PID file.
Data type: String[1]
The user for the SonarQube application.
Data type: Boolean
Specifies whether the SonarQube user should be a system user.
Data type: String[1]
Specifies the version of SonarQube that should be installed/updated. Expects a 4 digit version number (1.2.3.4), which can be found on the SonarQube download page.
Data type: Optional[String[1]]
Optional JVM options for SonarQube's web server.
Default value: undef
Data type: Optional[String[1]]
Optional JVM options for embedded elasticsearch server.
Default value: undef
Data type: Stdlib::Absolutepath
Specifies the directory for Sonarqube Helper scripts.
Data type: Optional[String[1]]
Optional system_passcode setting for monitoring.
Default value: undef
Install and configure SonarQube Scanner
The following parameters are available in the sonarqube::scanner
class:
Data type: String[1]
Specifies the basename of the installation archive.
Data type: String[1]
The URL from which the installation archive should be downloaded.
Data type: Stdlib::Absolutepath
Specifies the base directory where it should be installed. A new subdirectory for each version will be created.
Data type: Hash
Specifies the database configuration.
Data type: String[1]
The URL for the default SonarQube server.
Data type: String[1]
Specifies the version that should be installed/updated.
Symlink a folder to SonarQube's installation directory
The following parameters are available in the sonarqube::move_to_home
defined type:
Data type: Stdlib::Absolutepath
SonarQube's data directory.
Manage SonarQube plugins: download, install, remove.
The following parameters are available in the sonarqube::plugin
defined type:
Data type: String[1]
Namevar. Specifies the name of the plugin.
Default value: $name
Data type: Enum['present','absent']
Specifies the ensure state for the plugin.
Default: present
Default value: present
Data type: Optional[String[1]]
Specifies a combination of a GitHub username and project name,
for example myuser/sonar-exampleplugin
. This is used to generate
the download URL.
Default value: undef
Data type: String[1]
Specifies the groupid to use with maven.
Default value: 'org.codehaus.sonar-plugins'
Data type: Boolean
Install plugin using Maven. May not work with recent versions.
Default value: false
Data type: Optional[String[1]]
A direct download URL that points to the .jar file for the specified plugin.
The filename must match the values of $name
and $version
, otherwise the
cleanup script may malfunction.
Default value: undef
Data type: String[1]
Specifies the version of the plugin. This is also required to find and purge old plugin versions.