Version 5 (modified by 10 years ago) (diff) | ,
---|
Title of the Experiment
4. Configure and Initialize
omni
comes with a script, readyToLogin
which finds the login information for nodes in your slice.
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.
On your local machine:
readyToLogin MYSLICE --useSliceAggregates --ansible-inventory -o cat inventory ansible all -m ping -i inventory
Here is example output of running these commands:
$ readyToLogin ansible --useSliceAggregates --ansible-inventory -o Host info saved in inventory file: /Users/jdoe/projects/GENI/hellogeni/inventory $ cat inventory client ansible_ssh_host=pc3.instageni.clemson.edu ansible_ssh_port=33850 server ansible_ssh_host=pcvm3-6.instageni.clemson.edu $ ansible all -m ping -i inventory client | success >> { "changed": false, "ping": "pong" } server | success >> { "changed": false, "ping": "pong" }