Skip to content

Instantly share code, notes, and snippets.

@trebortech
Created November 5, 2015 03:14
Show Gist options
  • Save trebortech/8c581325a29b6b494ad7 to your computer and use it in GitHub Desktop.
Save trebortech/8c581325a29b6b494ad7 to your computer and use it in GitHub Desktop.
VMWare Provider Example
# /etc/salt/cloud.profiles.d/cmatrixbox.conf
cmatrixbox:
script_args: -P -p build-essential -p python-dev git v2015.8.0
provider: tt-vmware
clonefrom: Ubuntu-1404
num_cpus: 1
memory: 512MB
devices:
disk:
Hard disk 1:
size: 20
datacenter: Austin
ssh_username: salt
password: salt
sudo_password: salt
sudo: True
minion:
master: 192.168.1.20
startup_states: highstate
grains:
roles: cmatrix
environment: demo
Provider file
- The provider id name is tt-vmware
- This provider is using the vmware provider module as specified with provider: vmware
Profile file
- You might not need script_args unless you have problems bootstrapping the new instance. The line I have here installs a version from github using a tag version
- provider is the name I have as the id in the provider file NOT THE FILE NAME
- clonefrom is an image I already have ready in vSphere named Ubuntu-1404
- To use this profile
salt-cloud -p cmatrixbox newbox1
# /etc/salt/cloud.providers.d/vmware.conf
tt-vmware:
provider: vmware
user: root
password: vmware
port: 443
protocol: 'https'
url: 192.168.1.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment