6 Commits

Author SHA1 Message Date
2f951c1b8b chore(release): 1.1.4 2023-04-29 16:18:35 +02:00
930537c825 chore: Add SonarLint 2023-04-29 16:18:30 +02:00
12a617955c chore(release): 1.1.3 2023-04-28 18:37:55 +02:00
d509b4e788 fix: Fix the DB healthcheck to use custom user. 2023-04-28 18:37:47 +02:00
43c3d4dbc3 chore(release): 1.1.2 2023-04-28 18:15:06 +02:00
f9a98017a3 fix: Sudo for limit changes 2023-04-28 18:14:53 +02:00
5 changed files with 30 additions and 3 deletions

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@ __pycache__
.molecule
.cache
.venv
.scannerwork
*.iml
.idea

View File

@@ -2,6 +2,22 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.1.4](https://git.laurivan.com/Dev/ansible-role-sonarqube/compare/v1.1.3...v1.1.4) (2023-04-29)
### [1.1.3](https://git.laurivan.com/Dev/ansible-role-sonarqube/compare/v1.1.2...v1.1.3) (2023-04-28)
### Bug Fixes
* Fix the DB healthcheck to use custom user. ([d509b4e](https://git.laurivan.com/Dev/ansible-role-sonarqube/commit/d509b4e788b40fd15708c721d6af55e68a922966))
### [1.1.2](https://git.laurivan.com/Dev/ansible-role-sonarqube/compare/v1.1.1...v1.1.2) (2023-04-28)
### Bug Fixes
* Sudo for limit changes ([f9a9801](https://git.laurivan.com/Dev/ansible-role-sonarqube/commit/f9a98017a3f1d58bf72aa818eb5a0447bcd0b80f))
### [1.1.1](https://git.laurivan.com/Dev/ansible-role-sonarqube/compare/v1.1.0...v1.1.1) (2023-04-28)

7
sonar-project.properties Normal file
View File

@@ -0,0 +1,7 @@
sonar.projectKey=ansible-role-sonarqube
sonar.projectVersion=main
sonar.projectName=ansible-role-sonarqube
sonar.language=ansible,yaml
sonar.sources=.
sonar.host.url=http://10.0.0.27:39000

View File

@@ -33,17 +33,20 @@
# Type "-" for enforcing both soft and hard resource limits together for more details read `man limits.conf`.
- { limit_type: '-', limit_item: 'nofile', value: "{{ sonarqube_nofile }}" }
- { limit_type: '-', limit_item: 'nproc', value: "{{ sonarqube_nproc }}" }
become: true
- name: "SONARQUBE | Set up the max files"
sysctl:
name: fs.file-max
value: "{{ sonarqube_fs_file_max }}"
state: present
reload: yes
reload: true
become: true
- name: "SONARQUBE | Set up the VM max_map_count"
sysctl:
name: vm.max_map_count
value: "{{ sonarqube_vm_max_map_count }}"
state: present
reload: yes
reload: true
become: true

View File

@@ -29,7 +29,7 @@ services:
image: "{{ sonarqube_db_image }}"
restart: always
healthcheck:
test: /usr/bin/pg_isready
test: /usr/bin/pg_isready -U "{{ sonarqube_db_user }}""
interval: 5s
timeout: 10s
retries: 120