basho / node_package

RPM/Debian/FreeBSD/SmartOS/Solaris/OSX packaging templates for Erlang Nodes
Apache License 2.0
89 stars 63 forks source link

Node package + cuttlefish + inet_tls erlang distribution [JIRA: TOOLS-136] #187

Open marksteele opened 9 years ago

marksteele commented 9 years ago

I'd be nice if we can get an official solution to integrating inet_tls erlang distribution using node_package and cuttlefish out of the box.

For example, if I create a schema for cuttlefish with something like:

%% @doc Erlang distribution protocol
{mapping, "erlang.dist.protocol","vm_args.-proto_dist",[
  {default, "inet_tls"}
 ]}.

%% @doc Erlang SSL distribution protocol server certificate
{mapping, "erlang.dist.ssl.server.cert","vm_args.-ssl_dist_op server_certfile",[
   {datatype, file},
   {default, "$(platform_etc_dir)/cert.pem"}
 ]}.

%% @doc Erlang SSL distribution protocol server key
{mapping, "erlang.dist.ssl.server.key","vm_args.-ssl_dist_op server_keyfile",[
   {datatype, file},
   {default, "$(platform_etc_dir)/key.pem"}
 ]}.

...

And so on...

I believe the erlang node boots up properly, however nodetool is borked as it's unaware of the SSL settings. I do believe some folks have managed to get this working, wondering if/when those solutions will make their way into the official release.