[doc] Fix document on dymanic_inventory tox usage

There was a type and one important option missed for inventory
installation i na document, that was adjusted in [1]

So basically wah twe need to do, is store source in tox venv and create
an egg-link to it to get dynamic_inventory binary.

[1] https://review.opendev.org/c/openstack/openstack-ansible/+/863423

Change-Id: I4f9587c3a30c23efb1d4c9fe6b598f7eaf793410
This commit is contained in:
Dmitriy Rabotyagov 2022-12-16 15:06:15 +01:00 committed by Dmitriy Rabotyagov
parent 7f8f6327d0
commit 8493f264e8

View File

@ -159,9 +159,9 @@ tox.ini file in that directory with following content:
basepython = python3
deps = -rhttps://opendev.org/openstack/openstack-ansible/raw/branch/master/requirements.txt
install_command =
pip install -c https://releases.openstack.org/constraints/upper/master {packages} git+https://opendev.org/openstack/openstack-ansible@master
pip install -c https://releases.openstack.org/constraints/upper/master {packages} -e git+https://opendev.org/openstack/openstack-ansible@master\#egg=openstack-ansible
commands =
osa-dynamic-inventory --config {toxinidir}
openstack-ansible-inventory --config {toxinidir}/openstack_deploy
Then you can run a command to generate inventory using tox: