Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 07e8cf8f authored by luc chatty's avatar luc chatty
Browse files

add properties

parent 540685e9
Pipeline #132086 failed with stages
in 2 minutes and 41 seconds
......@@ -10,7 +10,6 @@
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>net.ihe.gazelle</groupId>
<artifactId>app.patient-registry-service</artifactId>
<name>Patient Registry Service</name>
<version>1.0.0-SNAPSHOT</version>
......@@ -18,8 +17,13 @@
<packaging>ejb</packaging>
<properties>
<postgresql.hostandport>localhost:5432</postgresql.hostandport>
<postgresql.host>localhost</postgresql.host>
<postgresql.port>5432</postgresql.port>
<postgresql.root.login>postgres</postgresql.root.login>
<postgresql.root.password>root</postgresql.root.password>
<postgresql.gazelle.login>gazelle</postgresql.gazelle.login>
<postgresql.gazelle.password>changeIt</postgresql.gazelle.password>
<postgresql.gazelle.name>pam-simulator-PR-test</postgresql.gazelle.name>
</properties>
<build>
......@@ -183,9 +187,9 @@
<!-- common configuration shared by all executions -->
<configuration>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://${postgresql.hostandport}/pam-simulator-PR-test</url>
<username>postgres</username>
<password>root</password>
<url>jdbc:postgresql://${postgresql.host}:${postgresql.port}/${postgresql.gazelle.name}</url>
<username>${postgresql.root.login}</username>
<password>${postgresql.root.password}</password>
<!-- You can comment out username/password configurations and have
maven to look them up in your settings.xml using ${settingsKey} -->
<settingsKey>sensibleKey</settingsKey>
......@@ -202,9 +206,9 @@
</goals>
<configuration>
<!-- need another database to drop the targeted one -->
<url>jdbc:postgresql://${postgresql.hostandport}/postgres</url>
<url>jdbc:postgresql://${postgresql.host}:${postgresql.port}/${postgresql.root.login}</url>
<autocommit>true</autocommit>
<sqlCommand>drop database "pam-simulator-PR-test"</sqlCommand>
<sqlCommand>drop database "${postgresql.gazelle.name}"</sqlCommand>
<!-- ignore error when database is not avaiable -->
<onError>continue</onError>
</configuration>
......@@ -218,9 +222,9 @@
</goals>
<configuration>
<!-- need another database to drop the targeted one -->
<url>jdbc:postgresql://${postgresql.hostandport}/postgres</url>
<url>jdbc:postgresql://${postgresql.host}:${postgresql.port}/${postgresql.root.login}</url>
<autocommit>true</autocommit>
<sqlCommand>create database "pam-simulator-PR-test"</sqlCommand>
<sqlCommand>create database "${postgresql.gazelle.name}"</sqlCommand>
<!-- ignore error when database is not avaiable -->
<onError>continue</onError>
</configuration>
......@@ -234,7 +238,7 @@
</goals>
<configuration>
<!-- need another database to drop the targeted one -->
<url>jdbc:postgresql://${postgresql.hostandport}/pam-simulator-PR-test</url>
<url>jdbc:postgresql://${postgresql.host}:${postgresql.port}/${postgresql.gazelle.name}</url>
<autocommit>true</autocommit>
<sqlCommand>create user gazelle with password '${postgresql.gazelle.password}'</sqlCommand>
<!-- ignore error when database is not avaiable -->
......@@ -287,9 +291,9 @@
<properties>
<jndi-name>java:/jboss/datasources/patientRegistryDS</jndi-name>
<enabled>true</enabled>
<connection-url>jdbc:postgresql://${postgresql.hostandport}/pam-simulator-PR-test</connection-url>
<connection-url>jdbc:postgresql://${postgresql.host}:${postgresql.port}/${postgresql.gazelle.name}</connection-url>
<driver-name>postgresql</driver-name>
<user-name>gazelle</user-name>
<user-name>${postgresql.gazelle.login}</user-name>
<password>${postgresql.gazelle.password}</password>
</properties>
</resource>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment