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 @@ ...@@ -10,7 +10,6 @@
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
</parent> </parent>
<groupId>net.ihe.gazelle</groupId>
<artifactId>app.patient-registry-service</artifactId> <artifactId>app.patient-registry-service</artifactId>
<name>Patient Registry Service</name> <name>Patient Registry Service</name>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
...@@ -18,8 +17,13 @@ ...@@ -18,8 +17,13 @@
<packaging>ejb</packaging> <packaging>ejb</packaging>
<properties> <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.password>changeIt</postgresql.gazelle.password>
<postgresql.gazelle.name>pam-simulator-PR-test</postgresql.gazelle.name>
</properties> </properties>
<build> <build>
...@@ -183,9 +187,9 @@ ...@@ -183,9 +187,9 @@
<!-- common configuration shared by all executions --> <!-- common configuration shared by all executions -->
<configuration> <configuration>
<driver>org.postgresql.Driver</driver> <driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://${postgresql.hostandport}/pam-simulator-PR-test</url> <url>jdbc:postgresql://${postgresql.host}:${postgresql.port}/${postgresql.gazelle.name}</url>
<username>postgres</username> <username>${postgresql.root.login}</username>
<password>root</password> <password>${postgresql.root.password}</password>
<!-- You can comment out username/password configurations and have <!-- You can comment out username/password configurations and have
maven to look them up in your settings.xml using ${settingsKey} --> maven to look them up in your settings.xml using ${settingsKey} -->
<settingsKey>sensibleKey</settingsKey> <settingsKey>sensibleKey</settingsKey>
...@@ -202,9 +206,9 @@ ...@@ -202,9 +206,9 @@
</goals> </goals>
<configuration> <configuration>
<!-- need another database to drop the targeted one --> <!-- 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> <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 --> <!-- ignore error when database is not avaiable -->
<onError>continue</onError> <onError>continue</onError>
</configuration> </configuration>
...@@ -218,9 +222,9 @@ ...@@ -218,9 +222,9 @@
</goals> </goals>
<configuration> <configuration>
<!-- need another database to drop the targeted one --> <!-- 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> <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 --> <!-- ignore error when database is not avaiable -->
<onError>continue</onError> <onError>continue</onError>
</configuration> </configuration>
...@@ -234,7 +238,7 @@ ...@@ -234,7 +238,7 @@
</goals> </goals>
<configuration> <configuration>
<!-- need another database to drop the targeted one --> <!-- 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> <autocommit>true</autocommit>
<sqlCommand>create user gazelle with password '${postgresql.gazelle.password}'</sqlCommand> <sqlCommand>create user gazelle with password '${postgresql.gazelle.password}'</sqlCommand>
<!-- ignore error when database is not avaiable --> <!-- ignore error when database is not avaiable -->
...@@ -287,9 +291,9 @@ ...@@ -287,9 +291,9 @@
<properties> <properties>
<jndi-name>java:/jboss/datasources/patientRegistryDS</jndi-name> <jndi-name>java:/jboss/datasources/patientRegistryDS</jndi-name>
<enabled>true</enabled> <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> <driver-name>postgresql</driver-name>
<user-name>gazelle</user-name> <user-name>${postgresql.gazelle.login}</user-name>
<password>${postgresql.gazelle.password}</password> <password>${postgresql.gazelle.password}</password>
</properties> </properties>
</resource> </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