Browse Source
Add extra requirements.txt ref to the Docs
Signed-off-by: Armin Teimouri <arminteymuri@gmail.com>
pull/11497/head
Armin Teimouri
2 months ago
No known key found for this signature in database
GPG Key ID: 2612F509F23E20BF
2 changed files with
5 additions and
0 deletions
-
README.md
-
docs/getting_started/setting-up-your-first-cluster.md
|
|
@ -27,6 +27,7 @@ then run the following steps: |
|
|
|
cp -rfp inventory/sample inventory/mycluster |
|
|
|
|
|
|
|
# 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) |
|
|
|
CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]} |
|
|
|
|
|
|
|
|
|
@ -205,6 +205,10 @@ playbook: |
|
|
|
```ShellSession |
|
|
|
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``: |
|
|
|
|
|
|
|