From 83efb0ff929801a5a2ab89f6b66c07ed940a309d Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Thu, 11 Aug 2016 13:04:56 +0200 Subject: HONEYCOMB-19 Minimal distro ans wiring for hc infra Change-Id: I8f0e577ac91106e6025f7f2f27811f850e1c5253 Signed-off-by: Maros Marsalek --- .../honeycomb-minimal-resources/WEB-INF/web.xml | 94 ++++++++++++++++++++++ .../config/honeycomb.json | 22 +++++ .../honeycomb-minimal-resources/config/logback.xml | 35 ++++++++ 3 files changed, 151 insertions(+) create mode 100644 infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/WEB-INF/web.xml create mode 100644 infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/honeycomb.json create mode 100644 infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/logback.xml (limited to 'infra/minimal-distribution/src/main/resources') diff --git a/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/WEB-INF/web.xml b/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/WEB-INF/web.xml new file mode 100644 index 000000000..b75bdeaec --- /dev/null +++ b/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/WEB-INF/web.xml @@ -0,0 +1,94 @@ + + + + + JAXRSRestconf + com.sun.jersey.spi.container.servlet.ServletContainer + + javax.ws.rs.Application + org.opendaylight.netconf.sal.rest.impl.RestconfApplication + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + JAXRSRestconf + /* + + + + GzipFilter + org.eclipse.jetty.servlets.GzipFilter + + mimeTypes + application/xml,application/yang.data+xml,xml,application/json,application/yang.data+json + + + + + GzipFilter + /* + + + + cross-origin-restconf + org.eclipse.jetty.servlets.CrossOriginFilter + + allowedOrigins + * + + + allowedMethods + GET,POST,OPTIONS,DELETE,PUT,HEAD + + + allowedHeaders + origin, content-type, accept, authorization + + + exposedHeaders + location + + + + cross-origin-restconf + /* + + + + + NB api + /* + POST + GET + PUT + PATCH + DELETE + HEAD + + + + diff --git a/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/honeycomb.json b/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/honeycomb.json new file mode 100644 index 000000000..350534ed7 --- /dev/null +++ b/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/honeycomb.json @@ -0,0 +1,22 @@ +{ + "persisted-context-path": "persist/context/data.json", + "persisted-context-restoration-type": "Merge", + "persisted-config-path": "persist/config/data.json", + "persisted-config-restoration-type": "Merge", + + "notification-service-queue-depth": 1, + + "restconf-root-path": "/restconf", + "restconf-port": 8181, + "restconf-websocket-port": 7779, + + "netconf-netty-threads": 2, + "netconf-tcp-binding-address": "127.0.0.1", + "netconf-tcp-binding-port": 7777, + "netconf-ssh-binding-address": "0.0.0.0", + "netconf-ssh-binding-port": 2831, + "netconf-notification-stream-name": "honeycomb", + + "username": "admin", + "password": "admin" +} \ No newline at end of file diff --git a/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/logback.xml b/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/logback.xml new file mode 100644 index 000000000..c294d184c --- /dev/null +++ b/infra/minimal-distribution/src/main/resources/honeycomb-minimal-resources/config/logback.xml @@ -0,0 +1,35 @@ + + + + + %date{"yyyy-MM-dd HH:mm:ss.SSS z"} [%thread] %-5level %logger{36} - %msg%n + + + + logs/honeycomb.log + + + logs/honeycomb.%d.log.zip + 1 + + + + 10MB + + + + %date{"yyyy-MM-dd HH:mm:ss.SSS z"} [%thread] %-5level %logger{35} - %msg%n + + + + + + + + + + + + + + -- cgit 1.2.3-korg