Changes between Version 3 and Version 4 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute


Ignore:
Timestamp:
03/15/15 15:55:51 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

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

    v3 v4  
    1919== 4.  Configure and Initialize ==
    2020
     21`omni` comes with a script, `readyToLogin` which finds the login information for nodes in your slice.
     22
     23As 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.
     24
     25{{{
     26#!div style="background: #ffd; border: 3px ridge; width: 800px;"
     27On your local machine:
     28
     29   {{{
     30#!python
     31readyToLogin MYSLICE --useSliceAggregates --ansible-inventory -o
     32cat inventory
     33ansible all  -m ping -i inventory
     34   }}}
     35}}}
     36
     37{{{
     38$ cat inventory
     39client  ansible_ssh_host=pc3.instageni.clemson.edu  ansible_ssh_port=33850
     40server  ansible_ssh_host=pcvm3-6.instageni.clemson.edu
     41
     42$ ansible all  -m ping -i inventory
     43client | success >> {
     44    "changed": false,
     45    "ping": "pong"
     46}
     47
     48server | success >> {
     49    "changed": false,
     50    "ping": "pong"
     51}
     52}}}
     53
    2154== 5.  Execute Experiment ==
    2255