INGe setup new server

MPDL

=APPLIKATIONEN=
 * PostgreSQL                                - aktuelle Version
 * ElasticSearch                             - Version 6.2.2
 * ElasticSearch ingest_attachment_plugin    - sollte nach ElasticSearch neu installiert werden, dann passt die Version automatisch (evlt. vorher deinstallieren)
 * Wildfly                                   - aktuelle Version
 * Tomcat                                    - 7.0.82
 * Apache                                    - aktuelle Version

=ELASTICSEARCH=
 * /etc/elasticsearch/jvm.options
 * -Xms4g (oder eben mehr, aber maximal 32g !!!)
 * -Xmx4g (oder eben mehr, aber maximal 32g !!!)
 * /etc/elasticsearch/elasticsearch.yml
 * cluster.name: elastic_inge
 * node.name:
 * path.data: /var/lib/elasticsearch
 * path.logs: /var/log/elasticsearch
 * transport.host: 
 * transport.tcp.port: 8080 (if this port is not available, you may pick any other port, which has to be configured for the fire wall !!!)
 * (additionally, if this port number is changed, you have to adjust the appropriate setting in the pubman.properties file !!!)


 * http.cors.enabled : true
 * http.cors.allow-origin : "*"
 * http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
 * http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length

=POSTGRESQL=
 * id_provider Tabelle anlegen
 * user_login Tabelle anlegen
 * required dataset:
 * user (admin-user)
 * organisations (mpg_ou, ext_ou)

=WILDFLY, EAR & PROPERTIES= WARs enpacken
 * EAR von Nexus kopieren und entpacken (inclusive WARs)


 * Properties und Konfigurationsdateien nach modules/pubman/main kopieren, anpassen und Zugriffsrechte anpassen
 * module.xml
 * pubman.properties
 * escidoc.framework_access.login.url=http://qa.inge.mpdl.mpg.de
 * inge.aa.instance.url=https://qa.inge.mpdl.mpg.de/auth/
 * inge.aa.default.target=https://qa.inge.mpdl.mpg.de/auth/clientLogin
 * inge.cone.database.server.name=qa.inge.mpdl.mpg.de
 * evtl. inge.cone.database.user.name=XXX
 * evtl. inge.cone.database.user.password=XXX
 * inge.cone.service.url=https://qa.inge.mpdl.mpg.de/cone/
 * inge.database.jdbc.url=jdbc:postgresql://localhost:5432/inge
 * evtl. inge.database.user.name=XXX
 * evtl. inge.database.user.password=postgres
 * evtl. inge.doi.service.password=XXX
 * evtl. inge.doi.service.url=https://test.doi.mpdl.mpg.de
 * evtl. inge.es.cluster.name=elastic_inge
 * inge.es.transport.ips= : as configured in elasticsearch.yml
 * inge.filestorage.seaweed_master_server_ip=https://qa.inge.mpdl.mpg.de/seaweedfs-master
 * evtl. inge.matomo.analytics.base.uri=https://analytics.mpdl.mpg.de
 * inge.matomo.analytics.site.id=XXX
 * inge.matomo.analytics.auth.token=XXX
 * evtl. inge.pid.service.password=pid_user
 * evtl. inge.pid.service.url=https://test.doi.mpdl.mpg.de
 * evtl. inge.pid.service.user=pid_user
 * inge.pubman.instance.url=https://qa.inge.mpdl.mpg.de
 * inge.rest.service.url=https://qa.inge.mpdl.mpg.de/rest
 * inge.syndication.service.url=https://qa.inge.mpdl.mpg.de/syndication
 * inge.systemtype=qa
 * inge.unapi.service.url=https://qa.inge.mpdl.mpg.de/rest/unapi
 * solution.properties
 * auth.properies - kopieren und zusätzlich als cone.properties kopieren
 * conf.xml
 * apache-fop-config.xml aus entpacktem pubman_ear-XXX.ear/dataaquisition/apache-fop-config.xml
 * evtl. ips.xml aus pubman_ear-XXX.ear/aa_presentation.war/WEB-INF/classes/ips.xml
 * standalone.xml
 * Port ändern z.B. 8090
 * Encoding festlegen  ... 
 * Logging:
 * evtl. log level ändern

=Startskripte=

folgende Startskripte/ Services wurden angepasst unter

/etc/systemd/system/

ExecStart=/bin/sh -c '/srv/web/inge/bin/standalone.sh > /srv/web/inge/standalone/log/server.log 2>&1'
 * inge.service
 * paths.target.wants
 * shutdown.target.wants
 * sockets.target.wants