From c50d521a3bb08e840df5f50fcaaa3d872a6feaa7 Mon Sep 17 00:00:00 2001 From: Magnus Date: Sat, 26 Jul 2014 12:41:58 -0700 Subject: Initial gerrit commit Signed-off-by: Magnus --- priv/setup_backend.config | 96 +++++++++++++++++++++++++++++++++++++++++++++++ priv/setup_device.config | 94 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 190 insertions(+) create mode 100644 priv/setup_backend.config create mode 100644 priv/setup_device.config (limited to 'priv') 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 } ] } + ] + } + ] + } + ]} +]} +]. -- cgit v1.2.1