Changes between Version 13 and Version 14 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute


Ignore:
Timestamp:
03/15/15 16:19:20 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

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

    v13 v14  
    2323As of `omni` version 2.8, it has an `--ansible-inventory` flag which generates the Ansible inventory, which is a flat file which tells ansible the name and login information for your nodes.
    2424
     251. Create your Ansible inventory file:
    2526{{{
    2627#!div style="background: #ffd; border: 3px ridge; width: 800px;"
     
    2829
    2930   {{{
    30 #!python
     31#!sh
    3132$ readyToLogin MYSLICE --useSliceAggregates --ansible-inventory -o
    3233$ cat inventory
    33 $ ansible all  -m ping -i inventory
    3434   }}}
    3535
     
    4343client  ansible_ssh_host=pc3.instageni.clemson.edu  ansible_ssh_port=33850
    4444server  ansible_ssh_host=pcvm3-6.instageni.clemson.edu
     45   }}}
     46}}}
    4547
     48
     492. Check to see if your nodes are up and ready.
     50
     51{{{
     52#!div style="background: #ffd; border: 3px ridge; width: 800px;"
     53This command uses the `ping` module to ping the specified nodes (in this case `all`) listed in the inventory file:
     54   {{{
     55#!sh
     56$ ansible all  -m ping -i inventory
     57   }}}
     58
     59An example output showing all of the nodes responding to ping:
     60   {{{
     61#!sh
    4662$ ansible all  -m ping -i inventory
    4763client | success >> {
     
    5672   }}}
    5773}}}
     74
     751. Try using the ping command to only ping `server` or `client` by replacing `all` in the above with `server` or `client`.
     76
    5877== 5.  Execute Experiment ==
    5978