diff options
Diffstat (limited to 'test/integration/targets/vmware_inventory/runme.sh')
-rwxr-xr-x | test/integration/targets/vmware_inventory/runme.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/integration/targets/vmware_inventory/runme.sh b/test/integration/targets/vmware_inventory/runme.sh index 9a713e4f3a..a4c4bf5605 100755 --- a/test/integration/targets/vmware_inventory/runme.sh +++ b/test/integration/targets/vmware_inventory/runme.sh @@ -9,8 +9,7 @@ contrib_dir=../../../../contrib/inventory echo "DEBUG: using ${contrib_dir}" export ANSIBLE_CONFIG=ansible.cfg -export vcenter_host="${vcenter_host:-0.0.0.0}" -export VMWARE_SERVER="${vcenter_host}" +export VMWARE_SERVER="${VCENTER_HOST}" export VMWARE_USERNAME="${VMWARE_USERNAME:-user}" export VMWARE_PASSWORD="${VMWARE_PASSWORD:-pass}" @@ -42,16 +41,16 @@ function cleanup { fi } -echo "DEBUG: Using ${vcenter_host} with username ${VMWARE_USERNAME} and password ${VMWARE_PASSWORD}" +echo "DEBUG: Using ${VCENTER_HOST} with username ${VMWARE_USERNAME} and password ${VMWARE_PASSWORD}" echo "Kill all previous instances" -curl "http://${vcenter_host}:5000/killall" > /dev/null 2>&1 +curl "http://${VCENTER_HOST}:5000/killall" > /dev/null 2>&1 echo "Start new VCSIM server" -curl "http://${vcenter_host}:5000/spawn?datacenter=1&cluster=1&folder=0" > /dev/null 2>&1 +curl "http://${VCENTER_HOST}:5000/spawn?datacenter=1&cluster=1&folder=0" > /dev/null 2>&1 echo "Debugging new instances" -curl "http://${vcenter_host}:5000/govc_find" +curl "http://${VCENTER_HOST}:5000/govc_find" # Get inventory ansible-playbook -i ./vmware_inventory.sh "./test_vmware_inventory.yml" --connection=local "$@" |