Go to file
2023-04-29 16:22:31 +02:00
.github feat: Initial commit. 2023-04-28 00:32:36 +02:00
defaults fix: Set elastic search parameters. 2023-04-28 18:05:28 +02:00
handlers feat: Initial commit. 2023-04-28 00:32:36 +02:00
meta feat: Initial commit. 2023-04-28 00:32:36 +02:00
molecule/default chore: Linting. 2023-04-28 01:12:26 +02:00
tasks chore: Fix molecule lint errors. 2023-04-29 16:22:31 +02:00
templates fix: Fix the DB healthcheck to use custom user. 2023-04-28 18:37:47 +02:00
.ansible-lint feat: Initial commit. 2023-04-28 00:32:36 +02:00
.gitattributes feat: Initial commit. 2023-04-28 00:32:36 +02:00
.gitignore chore: Ignore sonar-project.properties 2023-04-29 16:21:29 +02:00
.travis.yml feat: Initial commit. 2023-04-28 00:32:36 +02:00
.yamllint feat: Initial commit. 2023-04-28 00:32:36 +02:00
CHANGELOG.md chore(release): 1.1.4 2023-04-29 16:18:35 +02:00
LICENSE feat: Initial commit. 2023-04-28 00:32:36 +02:00
README.md chore: Add README. 2023-04-28 18:04:36 +02:00
sonar-project.properties chore: Ignore sonar-project.properties 2023-04-29 16:21:29 +02:00
test-requirements.txt feat: Initial commit. 2023-04-28 00:32:36 +02:00

Sonarqube Ansible role

This role installs Sonarqube via Docker compose.

Requirements

None

Role Variables

All variables are listed below (see also defaults/main.yml).

Name Description Default
sonarqube_image The sonarqube docker image sonarqube
sonarqube_db_image The database docker image postgres
sonarqube_http_port The published HTTP port 9000
sonarqube_api_port The API port 9001
sonarqube_vm_max_map_count Elastic search VM max map count 524288
sonarqube_fs_file_max Elastic search max files opened 131072
sonarqube_nofile Number of files opened 131072
sonarqube_nproc Number of processes operened 8192
sonarqube_config_path Location of the docker compose configuration /var/local/conf/sonarqube
sonarqube_db_user The database user name changeme
sonarqube_db_password The database password changeme

Other variables declared in defaults/main.yml are defined for internal purposes and you should not touch/change them.

Dependencies

You need a machine with docker and docker-compose installed.

Example Playbook

- hosts: servers
  roles:
      - 'laurivan.sonarqube'

License

This project is licensed under the MIT license - see the LICENSE file for details.

MIT License

Author Information

This role was created in 2023 by Laur Ivan.

Built With

Ansible Molecule

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.