Changes between Version 6 and Version 7 of GENIExperimenter/Tutorials/GENIExperimentEngine/Execute
- Timestamp:
- 03/11/15 15:46:20 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/GENIExperimentEngine/Execute
v6 v7 6 6 <tr> 7 7 <td> 8 <a href="http://groups.geni.net/geni/wiki/GENIE ducation/SampleAssignments/Template/ExerciseLayout/DesignSetup"> <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/design.2.png?format=raw" alt="Hello GENI index" height="90" /> </a>8 <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/GENIExperimentEngine/DesignSetup"> <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/design.2.png?format=raw" alt="Hello GENI index" height="90" /> </a> 9 9 </td> 10 10 <td> 11 <a href="http://groups.geni.net/geni/wiki/GENIE ducation/SampleAssignments/Template/ExerciseLayout/Execute"> <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/execute_on.2.png?format=raw" alt="Hello GENI index" height="90" /> </a>11 <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/GENIExperimentEngine/Execute"> <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/execute_on.2.png?format=raw" alt="Hello GENI index" height="90" /> </a> 12 12 </td> 13 13 <td> 14 <a href="http://groups.geni.net/geni/wiki/GENIE ducation/SampleAssignments/Template/ExerciseLayout/Finish"> <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/finish.2.png?format=raw" alt="Hello GENI index" height="90" /> </a>14 <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/GENIExperimentEngine/Finish"> <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/finish.2.png?format=raw" alt="Hello GENI index" height="90" /> </a> 15 15 </td> 16 16 </tr> … … 30 30 ---- 31 31 32 == Experiment with various Ansible modules: ping, shell, setup ==32 == 1. Experiment with various Ansible modules: ping, shell, setup == 33 33 34 34 We will first get familiar with some basic Ansible commands using the command-line interface. The '''ping''' module simply tries to do a SSH login to a node and reports success or failure. Run the following command on your controller: … … 54 54 }}} 55 55 56 == Create an Ansible playbook to download a parameterized URL from each node ==56 == 2. Create an Ansible playbook to download a parameterized URL from each node == 57 57 58 58 First create a starter Ansible playbook. Recall that a playbook is a YAML file containing a list of Ansible commands. Copy the following into a file called lab.yaml: … … 104 104 At this point, you can flesh out base Ansible playbook to complete the lab. No need to hurry. Run the command, look at the output; use Ansible’s debug module to print the value of the variable you’re stuffing it into. Getting the information may involve a sequence of text-processing steps (get the right line, strip off trailing stuff, strip off leading stuff, etc). So, do each step, one at a time, and print out the value after each step. This will help you find errors quickly and get to something working very quickly. 105 105 106 == Run the playbook ==106 == 3. Run the playbook == 107 107 108 108 Once you have finished your playbook, run it against all the nodes! As a data point, our Ansible playbook contained six commands (not including debug commands) and used the '''apt''', '''shell''', and '''get_url''' modules.