mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-23 21:53:21 +02:00
Update to 2023-12-14 15:00
This commit is contained in:
parent
0cbadca081
commit
e2b3b69c03
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Version of Shash TM to install
|
# 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
|
# 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
|
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
|
# 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)
|
# Should ansible handle upgrades ? (if False, only initial install and configuration will be done)
|
||||||
squashtm_manage_upgrade: True
|
squashtm_manage_upgrade: True
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
command: tar cf {{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}.tar.zst --use-compress-program=zstd ./
|
command: tar cf {{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}.tar.zst --use-compress-program=zstd ./
|
||||||
args:
|
args:
|
||||||
chdir: "{{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}"
|
chdir: "{{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}"
|
||||||
warn: False
|
|
||||||
environment:
|
environment:
|
||||||
ZSTD_CLEVEL: 10
|
ZSTD_CLEVEL: 10
|
||||||
ZSTD_NBTHREADS: 0
|
ZSTD_NBTHREADS: 0
|
||||||
|
@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
- name: List database upgrade scripts
|
- name: List database upgrade scripts
|
||||||
shell: >
|
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' |
|
grep 'upgrade-to' |
|
||||||
perl -pe 's/.*upgrade\-to\-(\d+(\.\d+)+).*/$1/' |
|
perl -pe 's/.*upgrade\-to\-(\d+(\.\d+)+).*/$1/' |
|
||||||
sort --version-sort
|
sort --version-sort
|
||||||
@ -130,7 +130,7 @@
|
|||||||
mysql_db:
|
mysql_db:
|
||||||
db: "{{ squashtm_db_name }}"
|
db: "{{ squashtm_db_name }}"
|
||||||
state: import
|
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_host: "{{ squashtm_db_server }}"
|
||||||
login_port: "{{ squashtm_db_port }}"
|
login_port: "{{ squashtm_db_port }}"
|
||||||
login_user: "{{ squashtm_db_user }}"
|
login_user: "{{ squashtm_db_user }}"
|
||||||
|
@ -6,4 +6,4 @@ CONF_DIR={{ squashtm_root_dir }}/etc
|
|||||||
LOG_DIR={{ squashtm_root_dir }}/logs
|
LOG_DIR={{ squashtm_root_dir }}/logs
|
||||||
TOMCAT_HOME={{ squashtm_root_dir }}/data/tomcat
|
TOMCAT_HOME={{ squashtm_root_dir }}/data/tomcat
|
||||||
PLUGINS_DIR={{ squashtm_root_dir }}/app/plugins
|
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') }}
|
||||||
|
@ -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.username={{ squashtm_db_user }}
|
||||||
spring.datasource.password={{ squashtm_db_pass }}
|
spring.datasource.password={{ squashtm_db_pass }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user