Update to 2023-12-14 15:00

This commit is contained in:
Daniel Berteaud 2023-12-14 15:00:35 +01:00
parent 0cbadca081
commit e2b3b69c03
5 changed files with 6 additions and 7 deletions

View File

@ -1,11 +1,11 @@
---
# Version of Shash TM to install
squashtm_version: 3.0.5
squashtm_version: 5.1.0
# Archive URL which will be downloaded during install/upgrades
squashtm_archive_url: https://nexus.squashtest.org/nexus/repository/public-releases/tm/core/squash-tm-distribution/{{ squashtm_version }}.RELEASE/squash-tm-{{ squashtm_version }}.RELEASE.tar.gz
# Expected checksum of the archive
squashtm_archive_sha256: 4e5cc42a774866ac1d91bd938efd833eb952f36bbdd875a67e8bc2f0ca2407ff
squashtm_archive_sha256: f03f7df42f0d88d6ec3e704ad78ce74a34ac3e575f6d6d6621699fd2e2859183
# Should ansible handle upgrades ? (if False, only initial install and configuration will be done)
squashtm_manage_upgrade: True

View File

@ -4,7 +4,6 @@
command: tar cf {{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}.tar.zst --use-compress-program=zstd ./
args:
chdir: "{{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}"
warn: False
environment:
ZSTD_CLEVEL: 10
ZSTD_NBTHREADS: 0

View File

@ -118,7 +118,7 @@
- name: List database upgrade scripts
shell: >
ls /opt/squash_tm/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mysql') }}-* |
ls /opt/squash_tm/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mariadb') }}-* |
grep 'upgrade-to' |
perl -pe 's/.*upgrade\-to\-(\d+(\.\d+)+).*/$1/' |
sort --version-sort
@ -130,7 +130,7 @@
mysql_db:
db: "{{ squashtm_db_name }}"
state: import
target: "{{ squashtm_root_dir }}/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mysql') }}-upgrade-to-{{ item }}.sql"
target: "{{ squashtm_root_dir }}/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mariadb') }}-upgrade-to-{{ item }}.sql"
login_host: "{{ squashtm_db_server }}"
login_port: "{{ squashtm_db_port }}"
login_user: "{{ squashtm_db_user }}"

View File

@ -6,4 +6,4 @@ CONF_DIR={{ squashtm_root_dir }}/etc
LOG_DIR={{ squashtm_root_dir }}/logs
TOMCAT_HOME={{ squashtm_root_dir }}/data/tomcat
PLUGINS_DIR={{ squashtm_root_dir }}/app/plugins
DB_TYPE={{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mysql') }}
DB_TYPE={{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mariadb') }}

View File

@ -1,4 +1,4 @@
spring.datasource.url=jdbc:{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mysql') }}://{{ squashtm_db_server }}:{{ squashtm_db_port }}/{{ squashtm_db_name }}
spring.datasource.url=jdbc:{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mariadb') }}://{{ squashtm_db_server }}:{{ squashtm_db_port }}/{{ squashtm_db_name }}
spring.datasource.username={{ squashtm_db_user }}
spring.datasource.password={{ squashtm_db_pass }}