A bash script which runs on undercloud and boots an instance with ssh/ping access. Script first creates an ansible inventory file from UC's nova list. Then uses inventory file to run preflight.yml ansible.
The preflight.yml will do a few things on the OC:
- Create a private network/subnet.
- A router connecting public and internal networks.
- Downloads a Cirros image from web, uploads it to Glance.
- Creates a Nova tiny flavor.
- Boots an instance, while assigng both internal+public IPs.
- Create a security group which enables ssh/ping into instance.
How to run: ./pansible.sh x where x is how many instances you wish to boot.