Changes between Version 13 and Version 14 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
- Timestamp:
- 03/15/15 16:19:20 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
v13 v14 23 23 As 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 24 25 1. Create your Ansible inventory file: 25 26 {{{ 26 27 #!div style="background: #ffd; border: 3px ridge; width: 800px;" … … 28 29 29 30 {{{ 30 #! python31 #!sh 31 32 $ readyToLogin MYSLICE --useSliceAggregates --ansible-inventory -o 32 33 $ cat inventory 33 $ ansible all -m ping -i inventory34 34 }}} 35 35 … … 43 43 client ansible_ssh_host=pc3.instageni.clemson.edu ansible_ssh_port=33850 44 44 server ansible_ssh_host=pcvm3-6.instageni.clemson.edu 45 }}} 46 }}} 45 47 48 49 2. Check to see if your nodes are up and ready. 50 51 {{{ 52 #!div style="background: #ffd; border: 3px ridge; width: 800px;" 53 This 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 59 An example output showing all of the nodes responding to ping: 60 {{{ 61 #!sh 46 62 $ ansible all -m ping -i inventory 47 63 client | success >> { … … 56 72 }}} 57 73 }}} 74 75 1. Try using the ping command to only ping `server` or `client` by replacing `all` in the above with `server` or `client`. 76 58 77 == 5. Execute Experiment == 59 78