This file contains hidden or 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
Create a virtual machine within the folder | |
resource "vsphere_virtual_machine" "centos6-vmware" { | |
name = "centos6-vmware" | |
vcpu = 4 | |
memory = 16384 | |
resource_pool = "Image_Lab" | |
datacenter = "Seatown" | |
cluster = "MacPro" | |
gateway = "10.48.96.1" |
This file contains hidden or 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
2016/03/29 13:34:46 [INFO] Terraform version: 0.6.15 dev d1ac7d3b2e1be2f32092275340f33a2d73f7b31a | |
2016/03/29 13:34:46 [DEBUG] Detected home directory from env var: /Users/bgarner | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: atlas = /files/go/bin/terraform-provider-atlas | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: aws = /files/go/bin/terraform-provider-aws | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: azure = /files/go/bin/terraform-provider-azure | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: azurerm = /files/go/bin/terraform-provider-azurerm | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: chef = /files/go/bin/terraform-provider-chef | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: clc = /files/go/bin/terraform-provider-clc | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: cloudflare = /files/go/bin/terraform-provider-cloudflare | |
2016/03/29 13:34:46 [DEBUG] Discovered plugin: cloudstack = /files/go/bin/terraform-provider-cloudstack |
This file contains hidden or 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
"boot_command": [ | |
"<enter><wait><f6><esc>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", |
This file contains hidden or 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
(gwmi win32_operatingsystem).OperatingSystemSKU -match "(\b[7-9]|10|1[2-5]|1[7-9]|2[0-5])" |
This file contains hidden or 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
alias terraformhome="cd $GOPATH/src/github.com/hashicorp/terraform; echo -e \"\033[33m--> \`pwd\`\033[0m\"" |
This file contains hidden or 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
# Configure the VMware vCloud Director Provider | |
provider "vcd" { | |
user = "username" | |
password = "password" | |
org = "test-org" | |
url = "https://vcloud.company.com" | |
vdc = "TEST-OVDC" | |
} | |
resource "vcd_vapp" "test-terra" { |
This file contains hidden or 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
myhost:terraform-itcloud blake$ terraform apply | |
2016/01/10 17:41:45 [INFO] Terraform version: 0.6.9 fd1c2697a461588010711ab119525182c43a347e | |
2016/01/10 17:41:45 [DEBUG] Detected home directory from env var: /Users/blake | |
2016/01/10 17:41:45 [DEBUG] Discovered plugin: atlas = /usr/local/bin/terraform-provider-atlas | |
2016/01/10 17:41:45 [DEBUG] Discovered plugin: aws = /usr/local/bin/terraform-provider-aws | |
2016/01/10 17:41:45 [DEBUG] Discovered plugin: azure = /usr/local/bin/terraform-provider-azure | |
2016/01/10 17:41:45 [DEBUG] Discovered plugin: azurerm = /usr/local/bin/terraform-provider-azurerm | |
2016/01/10 17:41:45 [DEBUG] Discovered plugin: chef = /usr/local/bin/terraform-provider-chef | |
2016/01/10 17:41:45 [DEBUG] Discovered plugin: cloudflare = /usr/local/bin/terraform-provider-cloudflare |
This file contains hidden or 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
# this file needs to be placed at the following path | |
# C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\ | |
Set-PSReadlineOption -TokenKind Parameter -ForegroundColor white | |
Set-PSReadlineOption -TokenKind Comment -ForegroundColor DarkGreen | |
Set-PSReadlineOption -TokenKind Keyword -ForegroundColor Green | |
Set-PSReadlineOption -TokenKind String -ForegroundColor DarkCyan | |
Set-PSReadlineOption -TokenKind Operator -ForegroundColor white | |
Set-PSReadlineOption -TokenKind Variable -ForegroundColor Green | |
Set-PSReadlineOption -TokenKind Command -ForegroundColor Yellow |
This file contains hidden or 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
# remove troublesome 3rd party app store apps that cause sysprep to fail | |
if ([Environment]::OSVersion.Version -ge (new-object 'Version' 10,0)) | |
{ | |
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online | |
Get-AppxPackage -AllUsers | Remove-AppxPackage | |
} |