Created
April 6, 2018 02:25
-
-
Save mrlesmithjr/2a573a82bf4ce944316bffcacca80899 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
--- | |
# 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