This changeset resolves #294 by adding two CLI switches to the launcher (x and y) to allow the operator to configure the Tinsel-facing cluster shape. When any of these switches are used, the values of environment variables HOSTLINK_BOXES_X and HOSTLINK_BOXES_Y read by the Mothership (and Hostlink) are changed to the arguments passed in. The launcher will warn if these are not integers (which Tinsel mandates), but will allow the operator to continue regardless (Hostlink will vomit down the line).
Note that this will not stop users from loading an 8-box file and placing devices on boxes that have no Motherships associated with them. When the operator attempts to deploy such an application, the deploy logic will post and give up.
Tested by running a (single-box) 3x3 plate on Heaney.
This changeset resolves #294 by adding two CLI switches to the launcher (
x
andy
) to allow the operator to configure the Tinsel-facing cluster shape. When any of these switches are used, the values of environment variablesHOSTLINK_BOXES_X
andHOSTLINK_BOXES_Y
read by the Mothership (and Hostlink) are changed to the arguments passed in. The launcher will warn if these are not integers (which Tinsel mandates), but will allow the operator to continue regardless (Hostlink will vomit down the line).Note that this will not stop users from loading an 8-box file and placing devices on boxes that have no Motherships associated with them. When the operator attempts to deploy such an application, the deploy logic will post and give up.
Tested by running a (single-box) 3x3 plate on Heaney.