summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorMagnus <mfeuer@jaguarlandrover.com>2014-07-26 12:41:58 -0700
committerMagnus <mfeuer@jaguarlandrover.com>2014-07-26 12:41:58 -0700
commitc50d521a3bb08e840df5f50fcaaa3d872a6feaa7 (patch)
tree8ed9ef6f18eeff38c6704a5e52988198a73876e9 /priv
parent0b3e2b95237ca34a338992f4ff2c19372076cc42 (diff)
downloadrvi_core-c50d521a3bb08e840df5f50fcaaa3d872a6feaa7.tar.gz
Initial gerrit commit
Signed-off-by: Magnus <mfeuer@jaguarlandrover.com>
Diffstat (limited to 'priv')
-rw-r--r--priv/setup_backend.config96
-rw-r--r--priv/setup_device.config94
2 files changed, 190 insertions, 0 deletions
diff --git a/priv/setup_backend.config b/priv/setup_backend.config
new file mode 100644
index 0000000..596244d
--- /dev/null
+++ b/priv/setup_backend.config
@@ -0,0 +1,96 @@
+%% -*- erlang -*-
+[
+ %% Put include first, making it possible to override any defaults below
+ %%
+ %% Add our own app(s)
+ {apps,
+ [kernel,
+ stdlib,
+ sasl,
+ {setup, load},
+ syntax_tools,
+ lager,
+ crypto,
+ public_key,
+ exo,
+ bert,
+ compiler,
+ ssl,
+ asn1,
+
+ rvi,
+ rvi_common,
+ service_edge,
+ service_discovery,
+ authorize,
+ schedule,
+ data_link_backend,
+ {data_link_device, load}, %% Load, but do not start.
+ protocol ]},
+
+ %%
+ %% Custom environment settings
+ %%
+ {env,
+ [
+ {lager,
+ [ { handlers,
+ [{lager_console_backend, debug}]
+ }
+ ]
+ },
+
+ {rvi,
+ [
+ { node_address, "localhost:9990" }, %% Should match bert_rpc_server below
+ { node_service_prefix, "jlr.com/backend/"},
+
+ { backend_address, "localhost:9990" },
+ { backend_service_prefix, "jlr.com/backend/" },
+
+ %% Fire up a bert rpcserver for the backend data link module.
+
+ { components,
+ [
+ { service_edge,
+ [ { url, "http://localhost:8801" },
+ { exo_http_opts, [ { port, 8801 } ] }
+ ]
+ },
+ { service_discovery,
+ [ { url, "http://localhost:8802" },
+ { exo_http_opts, [ { port, 8802 } ] }
+ ]
+ },
+ { schedule,
+ [ { url, "http://localhost:8803" },
+ { exo_http_opts, [ { port, 8803 } ] }
+ ]
+ },
+ { authorize,
+ [ { url, "http://localhost:8804" },
+ { exo_http_opts, [ { port, 8804 } ] }
+ ]
+ },
+ { protocol,
+ [ { url, "http://localhost:8805" },
+ { exo_http_opts, [ { port, 8805 } ] }
+ ]
+ },
+ { data_link,
+ [
+ %% Listen to port 9990 for incoming calls. Must match
+ %% the port specified for node_address, which is used by
+ %% remote nodes to address this node.
+ { bert_rpc_server, [ { port, 9990 }]},
+ { url, "http://localhost:8806" },
+ { exo_http_opts, [ { port, 8806 } ] }
+ ]
+
+ }
+ ]
+ }
+ ]}
+]}
+
+].
diff --git a/priv/setup_device.config b/priv/setup_device.config
new file mode 100644
index 0000000..3ef6bcb
--- /dev/null
+++ b/priv/setup_device.config
@@ -0,0 +1,94 @@
+%% -*- erlang -*-
+[
+ %% Put include first, making it possible to override any defaults below
+ %%
+ %% Add our own app(s)
+ {apps,
+ [kernel,
+ stdlib,
+ sasl,
+ {setup, load},
+ syntax_tools,
+ lager,
+ crypto,
+ public_key,
+ exo,
+ bert,
+ compiler,
+ ssl,
+ asn1,
+
+
+
+ rvi,
+ rvi_common,
+ service_edge,
+ service_discovery,
+ authorize,
+ schedule,
+ { data_link_backend, load }, %% Load, but do not start
+ data_link_device,
+ protocol ]},
+
+ %%
+ %% Custom environment settings
+ %%
+ {env,
+ [
+ {lager,
+ [ { handlers,
+ [ {lager_console_backend, debug} ]
+ }
+ ]
+ },
+
+ {rvi,
+ [
+ { node_address, "localhost:9991" }, %% Should matcch bert_rpc_server below
+ { node_service_prefix, "jlr.com/vin/1234/"},
+
+ { backend_address, "localhost:9990" },
+ { backend_service_prefix, "jlr.com/backend/" },
+
+ { components,
+ [
+ { service_edge,
+ [ { url, "http://localhost:8811" },
+ { exo_http_opts, [ { port, 8811 } ] }
+ ]
+ },
+ { service_discovery,
+ [ { url, "http://localhost:8812" },
+ { exo_http_opts, [ { port, 8812 } ] }
+ ]
+ },
+ { schedule,
+ [ { url, "http://localhost:8813" },
+ { exo_http_opts, [ { port, 8813 } ] }
+ ]
+ },
+ { authorize,
+ [ { url, "http://localhost:8814" },
+ { exo_http_opts, [ { port, 8814 } ] }
+ ]
+ },
+ { protocol,
+ [ { url, "http://localhost:8815" },
+ { exo_http_opts, [ { port, 8815 } ] }
+ ]
+ },
+ { data_link,
+ [ { url, "http://localhost:8816" },
+ %% Listen to port 9991 for incoming calls. Must match
+ %% the port specified for node_address, which is used by
+ %% remote nodes to address this node.
+ { bert_rpc_server, [ { port, 9991 }]},
+
+ { exo_http_opts, [ { port, 8816 } ] }
+ ]
+ }
+ ]
+ }
+ ]}
+]}
+].