Skip to content

Commit b1d8ae9

Browse files
committed
Include example configs for both Postgres and SQL Server, and make it
easy to switch between them.
1 parent e38e2e9 commit b1d8ae9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

emap-setup/global-configuration-EXAMPLE.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ dates:
8080
end:
8181

8282
# Configurations for the UDS.
83-
uds:
83+
# For postgres
84+
postgres-uds: &postgres-uds
8485
UDS_JDBC_URL: jdbc:postgresql://uds_db:5432/uds
8586
# dialect to use for core informdb tables
8687
UDS_HIBERNATE_DIALECT: uk.ac.ucl.rits.inform.informdb.PostgreSQLEmapDialect
@@ -91,6 +92,21 @@ uds:
9192
UDS_USERNAME: schemauser
9293
UDS_PASSWORD: schemapw
9394

95+
# For SQL Server
96+
sqlserver-uds: &sqlserver-uds
97+
UDS_JDBC_URL: jdbc:sqlserver://fakeuds-mssql:1433;Encrypt=false;TrustServerCertificate=true
98+
# dialect to use for core informdb tables
99+
UDS_HIBERNATE_DIALECT: uk.ac.ucl.rits.inform.informdb.SQLServer2016EmapDialect
100+
# profile name to use for liquibase or other places where there is an opportunity to compute the correct value
101+
UDS_HIBERNATE_DIALECT_PROFILE: sqlserver
102+
UDS_SCHEMA: dbo
103+
UDS_USERNAME: sa
104+
UDS_PASSWORD: EXAMPLE_VALUE
105+
106+
107+
# Switch the actual config between Postgres and SQL Server here
108+
uds: *postgres-uds
109+
94110
# These are the configurations for glowroot (a Java application performance
95111
# management system).
96112
glowroot:

0 commit comments

Comments
 (0)