Bläddra i källkod

make driver class name parametarized in azure

jdogillo 8 år sedan
förälder
incheckning
9b63ac780c

+ 4 - 0
crss-data/crss-data-azure.yml

@@ -1,5 +1,6 @@
 spring:
   datasource:
+    driverClassName: "${spring.datasource.driverClassName}"
     # TODO: Should be replaced with psql after UAT
     url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataextraction
 #    url: jdbc:oracle:thin:@10.64.0.4:1521:ORCL
@@ -8,17 +9,20 @@ spring:
 crss:
   metadata:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataextraction
       username: crss_dataextraction
       password: crss_dataextraction
   datawarehouse:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       platform: postgresql
       url: jdbc:postgresql://10.64.0.4:5432/crss_dw
       username: crss_dw
       password: crss_dw
   registration:
      datasource:
+       driverClassName: "${spring.datasource.driverClassName}"
        url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
        username: crss_registration
        password: crss_registration

+ 1 - 0
crss-dataflow-app/crss-dataflow-app-azure.yml

@@ -1,6 +1,7 @@
 spring:
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow

+ 1 - 0
crss-datainterface-app/crss-datainterface-app-azure.yml

@@ -1,6 +1,7 @@
 spring:
   crss-nmms:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=nmms
       username: crss_nmms
       password: crss_nmms

+ 3 - 0
crss-datainterface-task-ingest/crss-datainterface-task-ingest-azure.yml

@@ -1,16 +1,19 @@
 spring:
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow
   crss-nmms:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=nmms
       username: crss_nmms
       password: crss_nmms
   crss-registration:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration

+ 3 - 0
crss-meterprocess-app/crss-meterprocess-app-azure.yml

@@ -1,16 +1,19 @@
 spring:
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-registration:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration
   crss-nmms:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=nmms
       username: crss_nmms
       password: crss_nmms

+ 3 - 0
crss-meterprocess-stream-daily-sink/crss-meterprocess-stream-daily-sink-azure.yml

@@ -1,16 +1,19 @@
 spring:
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-metering:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering
       username: crss_metering
       password: crss_metering
   crss-registration:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration

+ 2 - 0
crss-meterprocess-stream-mapper/crss-meterprocess-stream-mapper-azure.yml

@@ -1,11 +1,13 @@
 spring:
   crss-registration:
     dataSource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess

+ 3 - 0
crss-meterprocess-stream-processor-daily-validate/crss-meterprocess-stream-processor-daily-validate-azure.yml

@@ -1,16 +1,19 @@
 spring:
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-metering:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering
       username: crss_metering
       password: crss_metering
   crss-registration:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration

+ 3 - 0
crss-meterprocess-stream-source-daily-raw/crss-meterprocess-stream-source-daily-raw-azure.yml

@@ -2,6 +2,7 @@
 spring:
   profiles: dailyExtract
   datasource:
+    driverClassName: "${spring.datasource.driverClassName}"
     password: crss_metering
     username: crss_metering
     url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering
@@ -16,6 +17,7 @@ jdbc:
 spring:
   profiles: monthlyExtract
   datasource:
+    driverClassName: "${spring.datasource.driverClassName}"
     password: crss_metering
     username: crss_metering
     url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering
@@ -29,6 +31,7 @@ jdbc:
 # default
 spring:
   datasource:
+    driverClassName: "${spring.datasource.driverClassName}"
     password: crss_metering
     username: crss_metering
     url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering

+ 3 - 0
crss-meterprocess-task-stlready/crss-meterprocess-task-stlready-azure.yml

@@ -1,16 +1,19 @@
 spring:
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-nmms:
       datasource:
+        driverClassName: "${spring.datasource.driverClassName}"
         jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=nmms
         username: crss_nmms
         password: crss_nmms

+ 3 - 0
crss-mq-computation/crss-mq-computation-azure.yml

@@ -1,16 +1,19 @@
 spring:
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-registration:
     dataSource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration

+ 3 - 0
crss-mtr/crss-mtr-azure.yml

@@ -3,16 +3,19 @@ spring:
     include: mesos
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-registration:
     dataSource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration

+ 2 - 0
crss-reg/crss-reg-azure.yml

@@ -1,10 +1,12 @@
 spring:
   datasource:
+    driverClassName: "${spring.datasource.driverClassName}"
     url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
     username: crss_registration
     password: crss_registration
   xdf-control:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       url: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=xdfcontrol
       username: crss_xdf_control
       password: crss_xdf_control

+ 1 - 0
crss-settlement-app/crss-settlement-app-azure.yml

@@ -1,6 +1,7 @@
 spring:
   crss-stl:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=settlement
       username: crss_settlement
       password: crss_settlement

+ 12 - 0
crss-settlement-task-calculation-addtlcomp/crss-settlement-task-calculation-addtlcomp-azure.yml

@@ -1,35 +1,47 @@
 spring:
   crss-stl:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=settlement
       username: crss_settlement
       password: crss_settlement
   # for removal after ITER 7 stl testing
   crss-meterprocess:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-metering:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering
       username: crss_metering
       password: crss_metering
   crss-nmms:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=nmms
       username: crss_nmms
       password: crss_nmms
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow
+      
+  jpa:
+    properties:
+      hibernate:
+        hbm2ddl:
+          auto:
 
   redis:
     host: redis.marathon.l4lb.thisdcos.directory

+ 11 - 0
crss-settlement-task-calculation/crss-settlement-task-calculation-azure.yml

@@ -1,36 +1,47 @@
 spring:
   crss-stl:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=settlement
       username: crss_settlement
       password: crss_settlement
   # for removal after ITER 7 stl testing
   crss-meterprocess:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-metering:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering
       username: crss_metering
       password: crss_metering
   crss-nmms:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=nmms
       username: crss_nmms
       password: crss_nmms
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow
 
+  jpa:
+    properties:
+      hibernate:
+        hbm2ddl:
+          auto:
   redis:
     host: redis.marathon.l4lb.thisdcos.directory
 

+ 19 - 0
crss-settlement-task-file-gen-addtlcomp/crss-settlement-task-file-gen-addtlcomp-azure.yml

@@ -0,0 +1,19 @@
+spring:
+  crss-stl:
+    datasource:
+      jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=settlement
+      username: crss_settlement
+      password: crss_settlement
+      driverClassName: "${spring.datasource.driverClassName}"
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
+      username: crss_dataflow
+      password: crss_dataflow
+      driverClassName: "${spring.datasource.driverClassName}"
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
+      username: crss_meterprocess
+      password: crss_meterprocess
+      driverClassName: "${spring.datasource.driverClassName}"

+ 4 - 0
crss-settlement-task-invoice-generation/crss-settlement-task-invoice-generation-azure.yml

@@ -1,12 +1,14 @@
 spring:
   crss-stl:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=settlement
       username: crss_settlement
       password: crss_settlement
       maxPoolSize: 20
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow
@@ -14,6 +16,7 @@ spring:
   # for removal after ITER 7 stl testing
   crss-meterprocess:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
@@ -21,6 +24,7 @@ spring:
       maxPoolSize: 20
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess

+ 7 - 0
crss-settlement-task-validation/crss-settlement-task-validation-azure.yml

@@ -1,37 +1,44 @@
 spring:
   crss-stl:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=settlement
       username: crss_settlement
       password: crss_settlement
   crss-registration:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=registration
       username: crss_registration
       password: crss_registration
   # for removal after ITER 7 stl testing
   crss-meterprocess:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-main:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=meterprocess
       username: crss_meterprocess
       password: crss_meterprocess
   crss-metering:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=metering
       username: crss_metering
       password: crss_metering
   crss-nmms:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=nmms
       username: crss_nmms
       password: crss_nmms
   crss-dataflow:
     datasource:
+      driverClassName: "${spring.datasource.driverClassName}"
       jdbcUrl: jdbc:postgresql://10.64.0.4:5432/crss?currentSchema=dataflow
       username: crss_dataflow
       password: crss_dataflow