updates to bring this back into a working state

This commit is contained in:
2022-09-01 23:05:17 -04:00
parent a911170268
commit 943cbe9cba
7 changed files with 38 additions and 524 deletions

View File

@ -1,16 +1,16 @@
#!/bin/bash
# CREATE INVENTORY
HOSTS=${1:-500}
HOSTS=${1:-10}
VARLEN=${2:-1024}
echo "[testgroup]" > test.ini
echo "[testgroup]" > /tmp/test.ini
for i in $(seq $HOSTS)
do
echo "fakehost$i ansible_host=127.0.0.1 ansible_connection=local" >> test.ini
echo "fakehost$i ansible_host=127.0.0.1 ansible_connection=local" >> /tmp/test.ini
done
echo "[testgroup:vars]" >> test.ini
echo -n "foo=" >> test.ini
printf 'A%.0s' $(seq $VARLEN) >> test.ini
echo "[testgroup:vars]" >> /tmp/test.ini
echo -n "foo=" >> /tmp/test.ini
printf 'A%.0s' $(seq $VARLEN) >> /tmp/test.ini
awx-manage inventory_import --inventory-name="dummy_inventory" --source=test.ini
awx-manage inventory_import --inventory-name="dummy_inventory" --source=/tmp/test.ini