openstack-ansible/tests
Nolan Brubaker ea6954f72f Use python import machinery for inventory code
Change Idb7780f55e4a1fd77dd76becbf67c1ccbf220db7 restructured the python
inventory generation code so that it would be possible to install it
with pip. This change removes (most) of the import path hacks and
switches to using a pip-installed version of osa_toolkit.

Of note, the path hacks are left in place for the dynamic_inventory.py
file for now, as that file is really more of an endpoint, but is tested.

Also, the bootstrap-ansible.sh script was modified to install the code;
this is unnecessary with the tox environments because the tox directive
'usedevelop=True' does that already. Production environments still need
this, though.

Finally, to maintain usability when called directly, the interpreter for
dynamic_inventory.py was updated from `/usr/bin/env` to
`/opt/ansible-runime/python`. This change ensures that in a full
deployment the user is using the exact same code paths whether Ansible
invokes the script, or it is called directly. This also means that using
the script locally on a development machine, it must be invoked as an
argument to Python, unless the ansible-runtime directory exists.

Change-Id: Iafa573b1b144f98528d5e0aceb3f36e9de2a22a2
2017-07-28 16:39:52 +00:00
..
inventory Create complete AIO inventory config for tests 2016-09-23 15:56:14 -04:00
roles/bootstrap-host Improve ansible host & venv bootstrap 2017-07-20 09:23:30 +00:00
ansible.cfg Update ansible to version 2.1 2016-06-02 08:54:41 -05:00
bootstrap-aio.yml Improve ansible host & venv bootstrap 2017-07-20 09:23:30 +00:00
data-plane-test.sh Add debug data to data-plane-test 2017-07-08 15:45:50 +00:00
disk-access-test.sh Implement a data plane down time test for upgrades 2017-06-15 14:43:45 +01:00
get-ansible-role-requirements.yml Set python interpreter for connection:local plays 2017-07-12 09:15:59 +00:00
test_dictutils.py Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
test_filesystem.py Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
test_inventory.py Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
test_ip.py Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
test_manage.py Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
test-inventory.ini Update ansible to version 2.1 2016-06-02 08:54:41 -05:00