Changes between Version 6 and Version 7 of GENIExperimenter/Tutorials/GENIExperimentEngine/Execute


Ignore:
Timestamp:
03/11/15 15:46:20 (9 years ago)
Author:
acb@cs.princeton.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/GENIExperimentEngine/Execute

    v6 v7  
    66      <tr>
    77         <td>
    8          <a href="http://groups.geni.net/geni/wiki/GENIEducation/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>
    99       </td>
    1010       <td>
    11          <a href="http://groups.geni.net/geni/wiki/GENIEducation/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>
    1212       </td>
    1313       <td>
    14          <a href="http://groups.geni.net/geni/wiki/GENIEducation/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>
    1515       </td>
    1616     </tr>
     
    3030----
    3131
    32 == Experiment with various Ansible modules: ping, shell, setup ==
     32== 1. Experiment with various Ansible modules: ping, shell, setup ==
    3333
    3434We 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:
     
    5454}}}
    5555
    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 ==
    5757
    5858First 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:
     
    104104At 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.
    105105
    106 == Run the playbook ==
     106== 3. Run the playbook ==
    107107
    108108Once 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.