File tree Expand file tree Collapse file tree 10 files changed +17
-17
lines changed
Expand file tree Collapse file tree 10 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 188188 }
189189 ]
190190 },
191- "generated_at": "2025-05-06T13:08:52Z "
191+ "generated_at": "2025-05-08T15:00:54Z "
192192}
Original file line number Diff line number Diff line change @@ -711,7 +711,7 @@ An example custom database url is shown below:
711711
712712```yaml
713713acs_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
717717Along 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.
Original file line number Diff line number Diff line change 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 }}"
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
Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ default_jdbc_pg_driver_url: >-
3939default_jdbc_pg_driver_class : org.postgresql.Driver
4040
4141acs_play_repo_db_url : " "
42+ acs_play_repo_db_driver : " {{ default_jdbc_pg_driver_class }}"
4243acs_play_repo_db_name : " alfresco"
4344acs_play_repo_db_username : " alfresco"
4445acs_play_sync_db_url : " "
46+ acs_play_sync_db_driver : " {{ default_jdbc_pg_driver_class }}"
4547acs_play_sync_db_name : " alfresco-sync"
4648acs_play_sync_db_username : " alfresco-sync"
4749
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ acs_play_repository_acs_repository: "{{ nexus_repository.enterprise_releases }}"
33acs_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"
44acs_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 }}"
76acs_play_repository_jdbc_driver_version : " {{ acs_play_jdbc_pg_driver_version }}"
87acs_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 :
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ acs_play_sync_artifact_name: sync-dist-6.x
22acs_play_sync_repository : " {{ nexus_repository.enterprise_releases }}/services/sync"
33acs_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"
44acs_play_sync_zip_checksum : " sha1:{{ acs_play_sync_zip_url }}.sha1"
5- acs_play_sync_jdbc_driver_class : " {{ default_jdbc_pg_driver_class }}"
65acs_play_sync_jdbc_driver_version : " {{ acs_play_jdbc_pg_driver_version }}"
76acs_play_sync_jdbc_driver_url : >-
87 {{ '{0}/{1}/postgresql-{1}.jar'.format(default_jdbc_pg_driver_base_url, acs_play_sync_jdbc_driver_version) }}
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ sync_jmx_config_remote_enabled: false
1818sync_jmx_config_remote_port : 50800
1919sync_jmx_config_remote_rmi_port : 50801
2020
21- sync_jdbc_driver_class : org.postgresql.Driver
2221sync_jdbc_driver_version : 42.7.3
2322sync_jdbc_driver_base_url : https://repo.maven.apache.org/maven2/org/postgresql/postgresql
2423sync_jdbc_driver_url : >-
2524 {{ '{0}/{1}/postgresql-{1}.jar'.format(sync_jdbc_driver_base_url, sync_jdbc_driver_version) }}
2625sync_jdbc_driver_checksum : " sha1:{{ sync_jdbc_driver_url }}.sha1"
2726
2827sync_db_url : " "
28+ sync_db_driver : org.postgresql.Driver
2929sync_db_name : " alfresco-sync"
3030sync_db_username : " alfresco-sync"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 :
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 :
You can’t perform that action at this time.
0 commit comments