# {{ ansible_managed }}
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube
sonar.jdbc.username=sonarqube
sonar.jdbc.password={{ sonarqube_postgres_password }}

{% if sonarqube_ldap %}
sonar.security.realm=LDAP
ldap.url=ldaps://ldap.talas.com
ldap.bindDn=uid={{ ansible_hostname}},ou=servers,dc=talas,dc=com
ldap.bindPassword={{ ldappass }}

ldap.user.baseDn=ou=people,dc=talas,dc=com
ldap.user.request=(&(uid={login})(|(&(ObjectClass=CosAccount)(CosStatus=active))(&(ObjectClass=CosBot)(ServiceAccess=scm))))

ldap.group.baseDn=ou=groups,dc=talas,dc=com
ldap.group.request=(&(objectClass=posixGroup)(memberUid={uid}))

{% endif %}
sonar.telemetry.enable=false

{% if sonar_web_javaOpts != "" %}
sonar.web.javaOpts={{ sonar_web_javaOpts | trim }}
{% endif %}
{% if sonar_ce_javaOpts != "" %}
sonar.ce.javaOpts={{ sonar_ce_javaOpts | trim }}
{% endif %}
{% if sonar_es_javaOpts != "" %}
sonar.search.javaOpts={{ sonar_es_javaOpts | trim }}
{% endif %}
{% if sonar_web_javaAdditionalOpts != "" %}
sonar.web.javaAdditionalOpts={{ sonar_web_javaAdditionalOpts | trim }}
{% endif %}
{% if sonar_ce_javaAdditionalOpts != "" %}
sonar.ce.javaAdditionalOpts={{ sonar_ce_javaAdditionalOpts | trim }}
{% endif %}
