1
0
mirror of https://github.com/Oxalide/vsphere-influxdb-go.git synced 2023-10-10 13:36:51 +02:00
vsphere-influxdb-go/vendor/github.com/vmware/govmomi/govc/test/vcsim/provision.sh
2017-10-25 20:52:40 +00:00

31 lines
808 B
Bash

PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
echo "Creating vcsim model..."
cat > /etc/vmware-vpx/vcsim/model/initInventory-govc.cfg <<EOF
<config>
<inventory>
<dc>2</dc>
<host-per-dc>3</host-per-dc>
<vm-per-host>3</vm-per-host>
<poweron-vm-per-host>2</poweron-vm-per-host>
<cluster-per-dc>2</cluster-per-dc>
<host-per-cluster>3</host-per-cluster>
<rp-per-cluster>3</rp-per-cluster>
<vm-per-rp>4</vm-per-rp>
<poweron-vm-per-rp>3</poweron-vm-per-rp>
<dv-portgroups>2</dv-portgroups>
</inventory>
</config>
EOF
cat > /etc/vmware-vpx/vcsim/model/vcsim-default.cfg <<EOF
<simulator>
<enabled>true</enabled>
<initInventory>vcsim/model/initInventory-govc.cfg</initInventory>
</simulator>
EOF
echo "Starting VC simulator..."
vmware-vcsim-stop
vmware-vcsim-start default