Skip to content

ccollicutt/shooz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shooz

"Our Lady of the Killer Shooz" -- Brasyl, Ian McDonald

About

This Ansible inventory script uses the OpenStack credentials in group_vars/openstack_instances to connect to an OpenStack compute service and get a list of servers. Then it opens the ./hosts file and uses the servers listed there to query OpenStack compute and obtain the ip address of each server, if they exist, by their name (as opposed to their uuid).

group_vars/openstack_instances

This inventory script expects that there will be an Ansible variable file called openstack_instances.

Hosts file format

Currently must look like this:

[openstack_instances]
servername flavor_id=int group=string

group_vars/openstack_instances

This script requires that your OpenStack credentials are in group_vars/openstack_instances.

Minimum playbook

The example playbook shows the minium needed to use this workflow.

In order to use nova_compute you will have to setup the proper variables as well.

Gotchas

  • Single host not supported yet

Acknowledgements

About

Walk the cloud - Ansible OpenStack inventory script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages