1,760
edits
Changes
→INVESTIGATION 2: Fabric practice
: In the command above we're using the fab program to read the file fabfile.py and execute the getHostname function on the worker 192.168.56.11. Note that the IP address of your first worker will likely be different.
: If you did all the setup right and you try to execute the command above - you will get a password prompt. That shouldn't happen, Read the point is for everything to be automated, prompt carefully and thatsee who's why password it prompts you've set up SSH keys. To If it is not the same as your [seneca_id], try to fix it, add by adding the following line to before the first '''def''' line your fab file:
:<source lang="python">env.user = '[seneca_id]'</source>