updates to bring this back into a working state
This commit is contained in:
14
utils/inv.sh
14
utils/inv.sh
@ -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
|
||||
|
Reference in New Issue
Block a user