In the master.sh script, there is a command that will almost always fail:
MASTER_PRIVATE_IP=$(ip addr show eth1 | awk '/inet / {print $2}' | cut -d/ -f1)
This is due to 'eth1' not being the name of an existing device. Additionally, 'eth1' does not follow the Consistent Network Device Naming convention.
I suggest using 'ip addr show scope global'. This should produce working results.
MASTER_PRIVATE_IP=$(ip addr show scope global | awk '/inet / {print $2}' | cut -d/ -f1)
This worked for me.