Skip to content

Instantly share code, notes, and snippets.

@sammcgeown
Created December 4, 2019 15:26
Show Gist options
  • Save sammcgeown/2b79273cff4de0e9a712a32e24a1e618 to your computer and use it in GitHub Desktop.
Save sammcgeown/2b79273cff4de0e9a712a32e24a1e618 to your computer and use it in GitHub Desktop.
formatVersion: 1
inputs:
user:
type: string
sshkey:
type: string
resources:
Cloud_Machine_1:
type: Cloud.Machine
properties:
image: Ubuntu 18.04
flavor: Small
name: test-vm
networks:
- name: '${resource.Cloud_NSX_Network_1.id}'
network: '${resource.Cloud_NSX_Network_1.id}'
remoteAccess:
authentication: publicPrivateKey
sshKey: '${input.sshkey}'
username: '${input.user}'
constraints:
- tag: 'cloud:vsphere'
- tag: 'env:lab'
Cloud_NSX_Network_1:
type: Cloud.NSX.Network
properties:
networkType: routed
name: nsx-network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment