openstack-ansible/scripts
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
..
upgrade-utilities Set python interpreter for connection:local plays 2017-07-12 09:15:59 +00:00
ansible-role-requirements-editor.py Set python2 for SHA updating scripts 2017-06-12 13:12:52 +00:00
bootstrap-aio.sh Use root folder group_vars 2017-05-27 19:50:14 +00:00
bootstrap-ansible.sh Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
fastest-infra-wheel-mirror.py Fix fastest-infra-wheel-mirror.py for CentOS. 2017-02-22 14:26:44 +00:00
federated-login.sh Add project scoped token when obtaning token 2016-04-08 16:20:09 +00:00
gate-check-commit.sh Move Upgrade branch change above initial library source 2017-07-21 10:46:21 +00:00
gen-config.py Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
get-pypi-pkg-version.py Set python2 for SHA updating scripts 2017-06-12 13:12:52 +00:00
inventory-manage.py Use python import machinery for inventory code 2017-07-28 16:39:52 +00:00
keepalived_haproxy_notifications.sh Remove snowflaked keepalived config 2017-05-24 15:35:05 +00:00
openstack-ansible.rc Ensure that role path is absolute 2017-06-26 16:59:37 +01:00
os-cmd Fix os_cmd script for tty 2017-05-16 13:08:39 -05:00
pw-token-gen.py Add Ceph/RBD support to playbooks 2015-08-01 19:49:00 +01:00
release-yaml-file-prep.py Set python2 for SHA updating scripts 2017-06-12 13:12:52 +00:00
run-upgrade.sh Move unsetting of group and host env vars 2017-06-18 06:15:22 -07:00
scripts-library.sh Provide default python path 2017-07-21 07:25:43 +01:00
sources-branch-updater-lib.sh Improve ansible host & venv bootstrap 2017-07-20 09:23:30 +00:00
sources-branch-updater.sh scripts: sources-branch-updater: Allow role requirements updates on master 2017-06-22 20:39:46 +00:00
update-revision.sh Use root folder group_vars 2017-05-27 19:50:14 +00:00