new script to set ssh variables and determine the node's role