Specify the directory on the master that contains the setup script file, and any other files that's needed by that script. Whenever a new slave comes online, this directory is recursively copied to it and then the script gets executed.