Skip to content

Instantly share code, notes, and snippets.

View jason-azze's full-sized avatar

Jason Azze jason-azze

View GitHub Profile
@jason-azze
jason-azze / keybase.md
Created November 25, 2019 19:19
keybase.md

Keybase proof

I hereby claim:

  • I am jason-azze on github.
  • I am jason_azze (https://keybase.io/jason_azze) on keybase.
  • I have a public key ASB3134dQGPXARmk5-uVRhETcwTr6EAu8JEM6zrVYcnwEwo

To claim this, I am signing this object:

* module.linux-test.vsphere_virtual_machine.linux[0]: vsphere_virtual_machine.linux.0: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Please include the following information in your report:
Terraform Version: 0.11.10
Resource ID: vsphere_virtual_machine.linux.0
Mismatch reason: attribute mismatch: disk.1.attach
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"firmware":*terraform.ResourceAttrDiff{Old:"bios", New:"bios", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "disk.1.io_share_count":*terraform.ResourceAttrDiff{Old:"", New:"0", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "resource_pool_id":*terraform.ResourceAttrDiff{Old:"resgroup-464", New:"resgroup-464", NewComputed:false, NewRemoved:false, NewExtra:interfac
@jason-azze
jason-azze / gist:5eb94c45d0f4acfeb12b677200a1d4b5
Created January 17, 2018 20:00
stdout from a "diffs didn't match during apply" bug
module.linux-test.vsphere_virtual_machine.linux[1]: Destroying... (ID: 422dc036-9c20-27ff-810f-9a5dc59af008)
module.linux-test.vsphere_virtual_machine.linux[0]: Destroying... (ID: 422d0be8-1bcf-6e17-b72b-e49f1f2635f4)
module.utility-agents.vsphere_virtual_machine.linux[1]: Modifications complete after 4s (ID: 422d223b-a6fe-12e6-e053-b09fe3d5c87f)
module.utility-agents.vsphere_virtual_machine.linux[0]: Modifications complete after 4s (ID: 422d50a3-805e-4dfc-2766-608abef21cd7)
module.linux-build.vsphere_virtual_machine.linux[1]: Modifications complete after 4s (ID: 422d8637-8759-69d8-c45b-9e807297adf7)
module.linux-build.vsphere_virtual_machine.linux[0]: Modifications complete after 4s (ID: 422dffb1-55d2-b508-43b6-2b5bb7812972)
module.linux-test.vsphere_virtual_machine.linux.0: Still destroying... (ID: 422d0be8-1bcf-6e17-b72b-e49f1f2635f4, 10s elapsed)
module.linux-test.vsphere_virtual_machine.linux.1: Still destroying... (ID: 422dc036-9c20-27ff-810f-9a5dc59af008, 10s elapsed)
module.linux-test.vsphere_virtual_
@jason-azze
jason-azze / devci-agents.tf
Last active January 9, 2018 13:05
Appendices for vsphere-provider #341 file 1: called and calling modules. (Not including variables.tf, outputs.tf, or tfvars files)
# Terraform code to stand up Jenkins agents for devci Jenkins.
/* Include our vsphere module and provide it with some inputs.
Don't forget you'll need to run 'terraform init -upgrade=true' to get the latest
version of any modules */
# For now, variables that affect each of these modules will be kept in tfvars files.
module "windows-test" {
source = "git::http://stash.mycompany.com/scm/ops/tf-modules.git//vsphere-mod-win?ref=v1.1.14"
vsphere_user = "${var.vsphere_user}"
This file has been truncated, but you can view the full file.
2018/01/08 15:05:33 [INFO] Terraform version: 0.11.1 a42fdb08a43c7fabb8898fe8c286b793bbaa4835+CHANGES
2018/01/08 15:05:33 [INFO] Go runtime version: go1.9
2018/01/08 15:05:33 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "use-vmxnet3"}
2018/01/08 15:05:33 [DEBUG] Attempting to open CLI config file: /home/terraform/.terraformrc
2018/01/08 15:05:33 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/01/08 15:05:33 [INFO] CLI command args: []string{"apply", "use-vmxnet3"}
2018/01/08 15:05:33 [INFO] command: initializing local backend from plan (not set)
2018/01/08 15:05:33 [DEBUG] checking for provider in "."
2018/01/08 15:05:33 [DEBUG] checking for provider in "/usr/local/bin"
2018/01/08 15:05:33 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
@jason-azze
jason-azze / gist:aa3be2e0032ae5291fde2e3ae3fd6ac8
Created January 8, 2018 20:55
debug output from Terraform crash
[terraform@tf-dev01 devci-agents-batch1]$ terraform apply "use-vmxnet3"
module.windows-build.vsphere_virtual_machine.windows[1]: Creating...
boot_retry_delay: "" => "10000"
change_version: "" => "<computed>"
clone.#: "" => "1"
clone.0.customize.#: "" => "1"
clone.0.customize.0.network_interface.#: "" => "1"
clone.0.customize.0.timeout: "" => "10"
clone.0.customize.0.windows_options.#: "" => "1"
clone.0.customize.0.windows_options.0.admin_password: "<sensitive>" => "<sensitive>"
@jason-azze
jason-azze / example.json
Last active March 6, 2017 20:31
Debug output of PACKER_LOG_PATH="packerlog.txt" PACKER_LOG=1 packer build -var 'aws_access_key=redacted' -var 'aws_secret_key=redacted' -var 'do_api_token=redacted' example.json
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"do_api_token": ""
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
@jason-azze
jason-azze / debug-clean.txt
Created October 28, 2016 14:40
Log output of puppet agent run showing puppet-dotnet 1.0.2 interaction with puppetlabs-powershell 2.0.3
Debug: Failed to load library 'syslog' for feature 'syslog'
Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Using settings: adding file resource 'confdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'vardir': 'File[C:/ProgramData/PuppetLabs/puppet/var]{:path=>"C:/ProgramData/PuppetLabs/puppet/var", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'logdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/log]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/log", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'statedir': 'File[C:/ProgramData/PuppetLabs/puppet/var/state]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>