vernemq / rebar3_cuttlefish

Cuttlefish plugin for rebar3
Other
26 stars 37 forks source link

can't make it work with multiple nodes configuration #23

Closed brigadier closed 7 years ago

brigadier commented 7 years ago

app.conf - config file for cuttlefish

distributed_cookie=secret
nodename=abc
a.x=1

The schema for the file is correct, it gets successfully parsed and config file gets generated.

In the rebar.config:

{profiles, [{prod, [{relx, [{dev_mode, false},
                            {include_erts, true}]}]
            },
            {node1, [{relx, [
                {dev_mode, false},
                {include_erts, true}, {overlay_vars, ["config/vars_node1.config"]}]}]},
            {node2, [{relx, [{dev_mode, false},
                             {include_erts, true}, {overlay_vars, ["config/vars_node2.config"]}]}]},
            {node2, [{relx, [{dev_mode, false},
                             {include_erts, true}, {overlay_vars, ["config/vars_node3.config"]}]}]}
]
}.

each config file has {node, "node[N]@127.0.0.1"}. as content, just as in readme. but in all the releases the name of the node is always abc@local.home, as it is in the cuttlefish conf file. If I remove the node field from the cuttlefish conf file I get the following error:

vm.args needs to have a -name parameter.
  -sname is not supported.

Am I missing something?