Skip to content

Commit dcd5756

Browse files
author
Kai Hudalla
committedMay 24, 2018
Add enmasse specific protocol adapter config files.
Signed-off-by: Kai Hudalla <kai.hudalla@bosch-si.com>
1 parent 3bac647 commit dcd5756

4 files changed

+95
-10
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
hono:
2+
app:
3+
maxInstances: 1
4+
healthCheckPort: 8088
5+
healthCheckBindAddress: 0.0.0.0
6+
http:
7+
bindAddress: 0.0.0.0
8+
insecurePortBindAddress: 0.0.0.0
9+
insecurePortEnabled: true
10+
keyPath: ${secret.path}/http-adapter-key.pem
11+
certPath: ${secret.path}/http-adapter-cert.pem
12+
messaging:
13+
name: 'Hono HTTP Adapter'
14+
host: messaging.hono
15+
port: 5672
16+
registration:
17+
name: 'Hono HTTP Adapter'
18+
host: ${hono.registration.host}
19+
port: 5671
20+
credentialsPath: ${secret.path}/http-adapter.credentials
21+
trustStorePath: ${secret.path}/trusted-certs.pem
22+
credentials:
23+
name: 'Hono HTTP Adapter'
24+
host: ${hono.registration.host}
25+
port: 5671
26+
credentialsPath: ${secret.path}/http-adapter.credentials
27+
trustStorePath: ${secret.path}/trusted-certs.pem
28+
tenant:
29+
name: 'Hono HTTP Adapter'
30+
host: ${hono.registration.host}
31+
port: 5671
32+
credentialsPath: ${secret.path}/http-adapter.credentials
33+
trustStorePath: ${secret.path}/trusted-certs.pem
34+
command:
35+
name: 'Hono HTTP Adapter'
36+
host: messaging.hono
37+
port: 5672
38+
metric:
39+
reporter:
40+
graphite:
41+
active: true
42+
host: influxdb.hono
43+
port: 2003
44+
# disable spring boot actuator endpoints, enable metrics
45+
endpoints:
46+
enabled: false
47+
metrics:
48+
enabled: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
hono:
2+
app:
3+
maxInstances: 1
4+
healthCheckPort: 8088
5+
healthCheckBindAddress: 0.0.0.0
6+
mqtt:
7+
bindAddress: 0.0.0.0
8+
insecurePortBindAddress: 0.0.0.0
9+
insecurePortEnabled: true
10+
keyPath: ${secret.path}/mqtt-adapter-key.pem
11+
certPath: ${secret.path}/mqtt-adapter-cert.pem
12+
messaging:
13+
name: 'Hono MQTT Adapter'
14+
host: messaging.hono
15+
port: 5672
16+
registration:
17+
name: 'Hono MQTT Adapter'
18+
host: ${hono.registration.host}
19+
port: 5671
20+
credentialsPath: ${secret.path}/mqtt-adapter.credentials
21+
trustStorePath: ${secret.path}/trusted-certs.pem
22+
credentials:
23+
name: 'Hono MQTT Adapter'
24+
host: ${hono.registration.host}
25+
port: 5671
26+
credentialsPath: ${secret.path}/mqtt-adapter.credentials
27+
trustStorePath: ${secret.path}/trusted-certs.pem
28+
tenant:
29+
name: 'Hono MQTT Adapter'
30+
host: ${hono.registration.host}
31+
port: 5671
32+
credentialsPath: ${secret.path}/mqtt-adapter.credentials
33+
trustStorePath: ${secret.path}/trusted-certs.pem
34+
metric:
35+
reporter:
36+
graphite:
37+
active: true
38+
host: influxdb.hono
39+
port: 2003
40+
# disable spring boot actuator endpoints, enable metrics
41+
endpoints:
42+
enabled: false
43+
metrics:
44+
enabled: true
45+

‎example/src/main/config/hono-adapter-mqtt-vertx-config.yml

-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ hono:
3535
port: 5671
3636
credentialsPath: ${secret.path}/mqtt-adapter.credentials
3737
trustStorePath: ${secret.path}/trusted-certs.pem
38-
command:
39-
name: 'Hono MQTT Adapter'
40-
amqpHostname: hono-mqtt-internal
41-
host: hono-dispatch-router.hono
42-
port: 5673
43-
keyPath: ${secret.path}/mqtt-adapter-key.pem
44-
certPath: ${secret.path}/mqtt-adapter-cert.pem
45-
trustStorePath: ${secret.path}/trusted-certs.pem
4638
metric:
4739
reporter:
4840
graphite:

‎example/src/main/deploy/openshift/openshift_deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ oc create secret generic hono-adapter-http-vertx-conf \
8181
--from-file=$CERTS/http-adapter-cert.pem \
8282
--from-file=$CERTS/trusted-certs.pem \
8383
--from-file=$SCRIPTPATH/../http-adapter.credentials \
84-
--from-file=application.yml=$SCRIPTPATH/hono-adapter-http-vertx-config.yml
84+
--from-file=application.yml=$SCRIPTPATH/hono-adapter-http-vertx-config-enmasse.yml
8585
oc create -f $CONFIG/hono-adapter-http-vertx-jar/META-INF/fabric8/openshift.yml
8686
echo ... done
8787

@@ -91,7 +91,7 @@ oc create secret generic hono-adapter-mqtt-vertx-conf \
9191
--from-file=$CERTS/mqtt-adapter-cert.pem \
9292
--from-file=$CERTS/trusted-certs.pem \
9393
--from-file=$SCRIPTPATH/../mqtt-adapter.credentials \
94-
--from-file=application.yml=$SCRIPTPATH/hono-adapter-mqtt-vertx-config.yml
94+
--from-file=application.yml=$SCRIPTPATH/hono-adapter-mqtt-vertx-config-enmasse.yml
9595
oc create -f $CONFIG/hono-adapter-mqtt-vertx-jar/META-INF/fabric8/openshift.yml
9696
echo ... done
9797

0 commit comments

Comments
 (0)
Please sign in to comment.