Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Created April 6, 2018 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrlesmithjr/2a573a82bf4ce944316bffcacca80899 to your computer and use it in GitHub Desktop.
Save mrlesmithjr/2a573a82bf4ce944316bffcacca80899 to your computer and use it in GitHub Desktop.
---
# Defines the vSphere Virtual PortGroup that the VMs should be configured on.
vm_network: VSS-VLAN-102
# Defines the vSphere template to use for spinning up VMs
vm_template: ubuntu1604-packer-template
vms:
- name: vm-1
customization:
dns_servers: "{{ dns_nameservers }}"
domain: "{{ pri_domain_name }}"
disks: []
# - size: 72gb
# type: thin
# datastore: "{{ vcenter_datastore }}"
# - size: 100gb
# type: thin
# datastore: "{{ vcenter_datastore }}"
# - size: 50gb
# type: thin
# datastore: "{{ vcenter_datastore }}"
groups:
- ansible_provisioned
guest_id: ubuntu64Guest
networks:
- name: "{{ vm_network }}"
type: static
# device_type: vmxnet3
ip: 10.0.102.233
netmask: 255.255.255.0
gateway: 10.0.102.1
# vlan:
state: present
template: "{{ vm_template }}"
vm_hardware:
memory_mb: 512
num_cpus: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment