#9 inventory: Start the inventory directory
Merged by merlinm. Opened by stefw.
stefw/standard-test-roles inventory-subjects  into  master

Download 9.patch

These standard inventory scripts are about taking the test subjects
produced by a CI system and transforming them into something testable.
That includes launching a QCow2 image into a virtual machine, or
installing an RPM.

Tests do not need to use these scripts, but these provide useful
shared defaults.

These are to be installed in /usr/share/ansible/inventory

These scripts look interesting.

Could you provide examples (with context) showing how they would be used?

Also, where would these scripts get installed? /usr/bin?

rebased

Thanks Merlin. Sorry for the gap in responding. Been taking care of other things.

I think that these scripts would go into /etc/ansible/inventory or /usr/share/ansible/inventory.

As discussed on the mailing list, the various spec now allows tests to specify their own inventory to be executed. These just provide common scripts for most tests to use.

It's still a little unclear to me how best to represent these as defaults. I'm looking at inventory_plugins. But in either case they would still live somewhere like /usr/share/ansible/inventory ... and the inventory_plugins would consume them from there.

rebased

As discussed on the mailing list...

What mailing list is that? I haven't seen that discussion.

As discussed on the mailing list...

Oh sorry bout that. I was wondering why i got so little response:

https://lists.fedoraproject.org/archives/list/ci@lists.fedoraproject.org/thread/6AGQ6FVP2DSKS4TQQN6ZHXMQNBYK3AHZ/

Would love to have your opinion and advice on that thread.

rebased

Rebased and ready for merging. The plan is for these scripts to installed to /usr/share/ansible/inventory. Use of inventory_plugins is something I've decided against, due to them being a new and likely not yet stable feature of Ansible.

rebased

rebased

Pull-Request has been merged by merlinm

Metadata