Skip to content

Instantly share code, notes, and snippets.

View codyde's full-sized avatar
👊
Smash Them Toggles and Coding Cool Things

Cody De Arkland codyde

👊
Smash Them Toggles and Coding Cool Things
View GitHub Profile
@codyde
codyde / workflow.js
Created February 12, 2018 00:01
XaaS OS Blueprint Bootstrap
/* Remember to assign parameters/attributes to correctly return required values. At minimum these are"
busGroup - requesting business group
cafeHost - vRA Cafe Host
osCatalogName - Name of blueprint being requested
*/
// Determine catalog item from business group
var BusinessGroups = vCACCAFEEntitiesFinder.findBusinessGroups(cafeHost , busGroup)
System.log(BusinessGroups)
@codyde
codyde / xaas-sample-vra-blog.js
Last active February 12, 2018 03:05
XaaS Workflow Sample - vRealize Automation Blog
if (busGroup === null) {
busGroup = "Humblelab"
}
osCatalogName = "Ubuntu Server 16.04"
var BusinessGroups = vCACCAFEEntitiesFinder.findBusinessGroups(cafeHost , busGroup)
System.log(BusinessGroups)
var BusGroupID = BusinessGroups[0].id;
System.log(BusGroupID)
var CatalogItems = vCACCAFEEntitiesFinder.findCatalogItems(cafeHost, osCatalogName);
@codyde
codyde / network-selection.js
Created February 13, 2018 04:15
XaaS - Network Selection
if (Network == "Common"){
catRequestJSON.Ubuntu1604.data["VirtualMachine.Network0.Name"] = "Common-VLAN"
} else if (Network == "Web"){
catRequestJSON.Ubuntu1604.data["VirtualMachine.Network0.Name"] = "Web-VLAN"
} else if (Network == "DB"){
catRequestJSON.Ubuntu1604.data["VirtualMachine.Network0.Name"] = "DB-VLAN"
}
Wifi SSID: 500CM-CONF
Password: botwtmpr
vCenter Server Name: vcsa01.corp.local
vCenter IP: 52.36.60.129
Username: Student[01-60]
Password: Password[01-60]
Lab 1:
inputs: {}
resources:
Cloud_Machine_1:
type: Cloud.Machine
properties:
image: Ubuntu
flavor: Small
networks:
- name: '${Cloud_Network_1.name}'
Cloud_Network_1:
@codyde
codyde / dns.ps1
Last active October 12, 2018 09:27
DNS Update Script
[CmdletBinding()]
Param(
[Parameter(Mandatory = $True)]
[String]$Hostname,
[Parameter(Mandatory = $True)]
[String]$Domain,
[Parameter(Mandatory = $True)]
[String]$IP
inputs:
username:
type: string
title: Username
resources:
web1:
type: Cloud.Machine
networks:
- name: '${Cloud_Network_1.name}'
properties:
inputs:
username:
type: string
title: Username
resources:
web1:
type: Cloud.Machine
networks:
- name: '${Cloud_Network_1.name}'
properties:
@codyde
codyde / sample.yaml
Created December 7, 2018 21:59
Focused on Storage Constraint
inputs: {}
resources:
Cloud_Machine_1:
type: Cloud.Machine
properties:
constraints:
- tag: 'cloud:vsphere'
image: Ubuntu
flavor: small
networks:
@codyde
codyde / sample.yaml
Created December 7, 2018 21:59
Focused on Storage Constraint
inputs: {}
resources:
Cloud_Machine_1:
type: Cloud.Machine
properties:
constraints:
- tag: 'cloud:vsphere'
image: Ubuntu
flavor: small
networks: