Created
August 1, 2017 00:46
-
-
Save dayglo/fc48638d30218a5d420c69c7ac5b71dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
machineName=$1 | |
ip=$2 | |
mask=$3 | |
broadcast=$4 | |
gw=$5 | |
# you need to set vmuser and vmpass yourself before running this script. | |
docker-machine create \ | |
--driver vmwarevsphere \ | |
--vmwarevsphere-username=$vmuser \ | |
--vmwarevsphere-password=$vmpass \ | |
--vmwarevsphere-cpu-count=2 \ | |
--vmwarevsphere-memory-size=4096 \ | |
--vmwarevsphere-disk-size=20000 \ | |
--vmwarevsphere-vcenter=ukrdvmgvc001.dbpoc.uk \ | |
--vmwarevsphere-network=DMZ_Internet_Vlan201 \ | |
--vmwarevsphere-datastore=ukrd_esx_mgmt_data_002 \ | |
--vmwarevsphere-datacenter=Reading-Dev \ | |
--vmwarevsphere-hostsystem='Reading-Dev-PoC/ukrdsesxi001.dbpoc.uk' \ | |
--vmwarevsphere-pool=Reading-Dev-PoC \ | |
$machineName | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment