zuul-jobs/roles/write-inventory
James E. Blair 41d4d6c41d Allow mapping additional hostvars in write-inventory
In OpenDev, we use an inventory file with the public v4 and v6
addresses listed as hostvars.  We would like to use that feature in
testing as well.  In order to do that, we need to mutate the inventory
so that the public_ipv4 address supplied by nodepool is mapped to
the public_v4 address in the inventory.  This additional option allows
the user to configure such mappings.

Change-Id: I48f03cacdf4531c42d33f6e807845d5c2a1da1d5
2020-05-18 12:34:34 -07:00
..
library Allow mapping additional hostvars in write-inventory 2020-05-18 12:34:34 -07:00
tasks Allow mapping additional hostvars in write-inventory 2020-05-18 12:34:34 -07:00
__init__.py Add write-inventory role 2018-08-23 15:39:18 -07:00
README.rst Allow mapping additional hostvars in write-inventory 2020-05-18 12:34:34 -07:00

Write an abbreviated version of the Zuul inventory to a file

This writes the minimal information about hosts from the current Zuul inventory to a file. It may be used to subsequently invoke Ansible with the inventory for the job.

Role Variables

The path of the inventory file to write.