Add extra requirements.txt ref to the Docs

Signed-off-by: Armin Teimouri <arminteymuri@gmail.com>
pull/11497/head
Armin Teimouri 2024-09-02 11:49:07 +03:00
parent c4338687e1
commit b04581a985
No known key found for this signature in database
GPG Key ID: 2612F509F23E20BF
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ then run the following steps:
cp -rfp inventory/sample inventory/mycluster cp -rfp inventory/sample inventory/mycluster
# Update Ansible inventory file with inventory builder # Update Ansible inventory file with inventory builder
# Basides root ``requirements.txt`` , ``inventory builder`` requires some extra Python Packages: ``contrib/inventory_builder/requirements.txt``
declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5) declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]} CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]}

View File

@ -205,6 +205,10 @@ playbook:
```ShellSession ```ShellSession
pip install -r requirements.txt pip install -r requirements.txt
``` ```
Extra Python Packages are required if you want to use ``inventory builder``:
```ShellSession
pip install -r contrib/inventory_builder/requirements.txt
```
Copy ``inventory/sample`` as ``inventory/mycluster``: Copy ``inventory/sample`` as ``inventory/mycluster``: