Skip to content

Commit 6bf3207

Browse files
committed
revert to keep the older variables rather than new jdbc ones
1 parent 36497b7 commit 6bf3207

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,5 @@
188188
}
189189
]
190190
},
191-
"generated_at": "2025-05-06T13:08:52Z"
191+
"generated_at": "2025-05-08T15:00:54Z"
192192
}

docs/deployment-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ An example custom database url is shown below:
711711
712712
```yaml
713713
acs_play_repo_db_url: jdbc:mysql://54.164.117.56:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
714-
acs_play_repository_jdbc_driver_class: com.mysql.jdbc.Driver
714+
acs_play_repo_db_driver: com.mysql.jdbc.Driver
715715
```
716716
717717
Along with the url the database driver binaries need to be provided for one or both services in the `configuration_files/db_connector_repo` and/or `configuration_files/db_connector_sync` folders.

playbooks/acs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
repository_acs_artifact_name: "{{ acs_play_repository_acs_artifact_name }}"
342342
repository_acs_archive_url: "{{ acs_play_repository_acs_archive_url }}"
343343
repository_acs_archive_checksum: "{{ acs_play_repository_acs_archive_checksum }}"
344-
repository_jdbc_driver_class: "{{ acs_play_repository_jdbc_driver_class }}"
344+
repository_jdbc_driver_class: "{{ acs_play_repo_db_driver }}"
345345
repository_jdbc_driver_version: "{{ acs_play_repository_jdbc_driver_version }}"
346346
repository_jdbc_driver_url: "{{ acs_play_repository_jdbc_driver_url }}"
347347
repository_jdbc_driver_checksum: "{{ acs_play_repository_jdbc_driver_checksum }}"
@@ -668,11 +668,11 @@
668668
sync_zip_checksum: "{{ acs_play_sync_zip_checksum }}"
669669
sync_zip_username: "{{ nexus_user }}"
670670
sync_zip_password: "{{ nexus_password }}"
671-
sync_jdbc_driver_class: "{{ acs_play_sync_jdbc_driver_class }}"
672671
sync_jdbc_driver_version: "{{ acs_play_sync_jdbc_driver_version }}"
673672
sync_jdbc_driver_url: "{{ acs_play_sync_jdbc_driver_url }}"
674673
sync_jdbc_driver_checksum: "{{ acs_play_sync_jdbc_driver_checksum }}"
675674
sync_db_url: "{{ acs_play_sync_db_url }}"
675+
sync_db_driver: "{{ acs_play_sync_db_driver }}"
676676
sync_db_name: "{{ acs_play_sync_db_name }}"
677677
sync_db_username: "{{ acs_play_sync_db_username }}"
678678
when: acs_is_enterprise

playbooks/group_vars/all.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ default_jdbc_pg_driver_url: >-
3939
default_jdbc_pg_driver_class: org.postgresql.Driver
4040

4141
acs_play_repo_db_url: ""
42+
acs_play_repo_db_driver: "{{ default_jdbc_pg_driver_class }}"
4243
acs_play_repo_db_name: "alfresco"
4344
acs_play_repo_db_username: "alfresco"
4445
acs_play_sync_db_url: ""
46+
acs_play_sync_db_driver: "{{ default_jdbc_pg_driver_class }}"
4547
acs_play_sync_db_name: "alfresco-sync"
4648
acs_play_sync_db_username: "alfresco-sync"
4749

playbooks/group_vars/repository.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ acs_play_repository_acs_repository: "{{ nexus_repository.enterprise_releases }}"
33
acs_play_repository_acs_archive_url: "{{ acs_play_repository_acs_repository }}/{{ acs_play_repository_acs_artifact_name }}/{{ acs_play_repository_acs_version }}/{{ acs_play_repository_acs_artifact_name }}-{{ acs_play_repository_acs_version }}.zip"
44
acs_play_repository_acs_archive_checksum: "sha1:{{ acs_play_repository_acs_archive_url }}.sha1"
55

6-
acs_play_repository_jdbc_driver_class: "{{ default_jdbc_pg_driver_class }}"
76
acs_play_repository_jdbc_driver_version: "{{ acs_play_jdbc_pg_driver_version }}"
87
acs_play_repository_jdbc_driver_url: >-
98
{{ '{0}/{1}/postgresql-{1}.jar'.format(default_jdbc_pg_driver_base_url, acs_play_repository_jdbc_driver_version) }}
@@ -65,7 +64,7 @@ global_properties:
6564
db:
6665
url: >-
6766
{{ acs_play_repo_db_url if acs_play_repo_db_url else 'jdbc:postgresql://' + db_host + ':' + ports_cfg.postgres.sql | string + '/' + acs_play_repo_db_name }}
68-
driver: "{{ acs_play_repository_jdbc_driver_class }}"
67+
driver: "{{ acs_play_repo_db_driver }}"
6968
username: "{{ acs_play_repo_db_username }}"
7069
password: "{{ repo_db_password }}"
7170
alfresco:

playbooks/group_vars/syncservice.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ acs_play_sync_artifact_name: sync-dist-6.x
22
acs_play_sync_repository: "{{ nexus_repository.enterprise_releases }}/services/sync"
33
acs_play_sync_zip_url: "{{ acs_play_sync_repository }}/{{ acs_play_sync_artifact_name }}/{{ acs_play_sync_version }}/{{ acs_play_sync_artifact_name }}-{{ acs_play_sync_version }}.zip"
44
acs_play_sync_zip_checksum: "sha1:{{ acs_play_sync_zip_url }}.sha1"
5-
acs_play_sync_jdbc_driver_class: "{{ default_jdbc_pg_driver_class }}"
65
acs_play_sync_jdbc_driver_version: "{{ acs_play_jdbc_pg_driver_version }}"
76
acs_play_sync_jdbc_driver_url: >-
87
{{ '{0}/{1}/postgresql-{1}.jar'.format(default_jdbc_pg_driver_base_url, acs_play_sync_jdbc_driver_version) }}

roles/sync/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ sync_jmx_config_remote_enabled: false
1818
sync_jmx_config_remote_port: 50800
1919
sync_jmx_config_remote_rmi_port: 50801
2020

21-
sync_jdbc_driver_class: org.postgresql.Driver
2221
sync_jdbc_driver_version: 42.7.3
2322
sync_jdbc_driver_base_url: https://repo.maven.apache.org/maven2/org/postgresql/postgresql
2423
sync_jdbc_driver_url: >-
2524
{{ '{0}/{1}/postgresql-{1}.jar'.format(sync_jdbc_driver_base_url, sync_jdbc_driver_version) }}
2625
sync_jdbc_driver_checksum: "sha1:{{ sync_jdbc_driver_url }}.sha1"
2726

2827
sync_db_url: ""
28+
sync_db_driver: org.postgresql.Driver
2929
sync_db_name: "alfresco-sync"
3030
sync_db_username: "alfresco-sync"

roles/sync/meta/argument_specs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ argument_specs:
4141
required: false
4242
description: |
4343
The version of the PostgreSQL JDBC driver to download
44-
sync_jdbc_driver_class:
45-
type: str
46-
required: false
47-
default: org.postgresql.Driver
48-
description: |
49-
The class name of the JDBC driver to use
5044
sync_jdbc_driver_url:
5145
type: str
5246
required: false
@@ -62,6 +56,12 @@ argument_specs:
6256
required: false
6357
description: |
6458
The JDBC URL to connect to the database
59+
sync_db_driver:
60+
type: str
61+
required: false
62+
default: org.postgresql.Driver
63+
description: |
64+
The class name of the JDBC driver to use
6565
sync_db_name:
6666
type: str
6767
required: false

roles/sync/tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
sql:
2121
db:
2222
url: "{{ local_db_url }}"
23-
driver: "{{ sync_jdbc_driver_class }}"
23+
driver: "{{ sync_db_driver }}"
2424
username: "{{ sync_db_username }}"
2525
password: "{{ sync_db_password }}"
2626
server:

roles/sync/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
mode: "0644"
6060
owner: "{{ username }}"
6161
group: "{{ group_name }}"
62-
when: sync_jdbc_driver_class == 'org.postgresql.Driver'
62+
when: sync_db_driver == 'org.postgresql.Driver'
6363

6464
- name: Copy db_connector to {{ sync_home }}/service-sync/connectors folder
6565
ansible.builtin.copy:
@@ -68,7 +68,7 @@
6868
owner: "{{ username }}"
6969
group: "{{ group_name }}"
7070
mode: "0644"
71-
when: sync_jdbc_driver_class != 'org.postgresql.Driver'
71+
when: sync_db_driver != 'org.postgresql.Driver'
7272

7373
- name: Add paths to setenv file
7474
ansible.builtin.blockinfile:

0 commit comments

Comments
 (0)