(!) This role is tailored only for talas. It includes hard-coded LDAP parameters as well as the `sonarqube-community-branch-plugin-1.8.1.jar` plugin.

# Required variables

| Variable                                              | Description                                                                 | Sample value           |
|-------------------------------------------------------|-----------------------------------------------------------------------------|------------------------|
| pg_version                                            | The postgres server version                                                 | `14`                   |
| sonarqube_url                                         | url for the web interface                                                   | `sonarqube.talas.dev` |
| sonarqube_version                                     | The sonarqube version                                                       | `9.9.1.69595`          |
| sonarqube_postgres_password                           | The sonarqube postgres database password, must be stored in hashicorp vault | `foo`                  |

# Optional variables

| Variable                                              | Description                                                                                                                | Default value                                                                                                                                                                        | Sample value                                                                                    |
|-------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
| sonarqube_update_sonarqube_now                        | Set this value to true to upgrade sonarqube to a newer version                                                             | `false`                                                                                                                                                                              | `true`                                                                                          |
| sonarqube_download_url                                | The url allowing to download the Sonarqube distribution archive.                                                           | `https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-{{ sonarqube_version }}.zip`                                                                                      | `https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-{{ sonarqube_version }}.zip` |
| sonarqube_java_heap_size                              | Set the xmx of the 3 sonarqube engines (web, ce and es)                                                                    | None                                                                                                                                                                                 | `2048m`                                                                                         |
| sonarqube_ce_jmx_config                               | JMX parameters appended to the ce javaOpts. For now to disable it how have to set this param as an empty string            | See defaults/main.yml                                                                                                                                                                |                                                                                                 |
| sonarqube_web_jmx_config                              | JMX parameters appended to the web javaAdditionalOpts. For now to disable it how have to set this param as an empty string | See defaults/main.yml                                                                                                                                                                |                                                                                                 |
| sonarqube_jmx_user_list                               | Sonarqube JMX monitoring users.                                                                                            | <pre>- name: monitoring<br>  password: '{{ lookup(''hashi_vault'', ''secret=talas-kv/data/group_vars/all'')[''zabbix_jmx_monitoring_password' '] }}'<br>  right: readonly<br></pre> |                                                                                                 |
| sonarqube_talas_community_branch_plugin_version      | Set this value to install a version of the sonarqube talas community branch plugin version from nexus                     | None                                                                                                                                                                                 | `1.14.0.1`                                                                                      |
| sonarqube_talas_sonar_plugin_version                 | Set this value to install a version of the sonarqube talas private plugin version  from nexus                             | None                                                                                                                                                                                 | `1.9`                                                                                           |
| sonarqube_community_branch_plugin_version             | Set this value to install a version of the sonarqube community branch plugin version  from public repo                     | None                                                                                                                                                                                 | `1.14.0.1`                                                                                      |
| sonarqube_redaalaoui_sonar_java_no_var_plugin_version | Set this value to install a version of the sonarqube sonar-java-no-var-plugin plugin version from public repo              | None                                                                                                                                                                                 | `1.9`                                                                                           |
